-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
42 lines (33 loc) · 1.25 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# ToDo: Add files: User documentation
# ToDo: Add files: Tooling
# FixMe: Namcap warnings and errors
# Maintainer: Ross Clark <[email protected]>
# Contributor: Ross Clark <[email protected]>
_pkgname=polib
pkgbase=python-polib
pkgname=("python-polib")
pkgver=1.1.1
pkgrel=3
pkgdesc="A library to manipulate gettext files"
url="https://pypi.python.org/pypi/polib"
arch=("any")
license=("MIT")
depends=("python")
makedepends=("python-setuptools")
source=("${pkgbase}-${pkgver}.tar.gz::https://pypi.io/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=("e02c355ae5e054912e3b0d16febc56510eff7e49d60bf22aecb463bd2f2a2dfa")
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --skip-build --optimize=1
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}