summaryrefslogtreecommitdiff
path: root/pcr/python-polib
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-03-05 15:46:13 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2021-03-05 15:59:03 -0500
commit21e627c3fda64f8cc598730758882c7a2bfd036d (patch)
tree13768e951d9388a68eaa984cfc85ec3c49d58269 /pcr/python-polib
parent69978eacfb9cb73d6485e43de0041a3504a65719 (diff)
downloadabslibre-21e627c3fda64f8cc598730758882c7a2bfd036d.tar.gz
abslibre-21e627c3fda64f8cc598730758882c7a2bfd036d.tar.bz2
abslibre-21e627c3fda64f8cc598730758882c7a2bfd036d.zip
[python-polib][python2-polib]: re-introduce packages
Diffstat (limited to 'pcr/python-polib')
-rw-r--r--pcr/python-polib/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/pcr/python-polib/PKGBUILD b/pcr/python-polib/PKGBUILD
new file mode 100644
index 000000000..500f6a45d
--- /dev/null
+++ b/pcr/python-polib/PKGBUILD
@@ -0,0 +1,33 @@
+# Contributor: Esteban V. Carnevale <alfplayer@mailoo.com>
+
+pkgbase=python-polib
+pkgname=(python-polib python2-polib)
+_pkgname=polib
+pkgver=1.1.0
+pkgrel=3
+pkgdesc='A library to manipulate gettext files'
+url='https://pypi.python.org/pypi/polib'
+arch=('any')
+license=('MIT')
+depends=('python' 'python2')
+source=("https://pypi.io/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('fad87d13696127ffb27ea0882d6182f1a9cf8a5e2b37a587751166c51e5a332a')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+package_python-polib() {
+ depends=('python')
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-polib() {
+ depends=('python2')
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}