[arch-commits] Commit in python2-polib/trunk (PKGBUILD)
Alexandre Filgueira
faidoc at archlinux.org
Fri May 27 23:47:20 UTC 2016
Date: Saturday, May 28, 2016 @ 01:47:20
Author: faidoc
Revision: 177344
upgpkg: python-polib 1.0.7-2
Modified:
python2-polib/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-27 23:44:46 UTC (rev 177343)
+++ PKGBUILD 2016-05-27 23:47:20 UTC (rev 177344)
@@ -1,25 +1,32 @@
# $Id$
# Contributor: Esteban V. Carnevale <alfplayer at mailoo.com>
-pkgname=python2-polib
+pkgname=(python-polib python2-polib)
_pkgname=polib
pkgver=1.0.7
-pkgrel=1
+pkgrel=2
pkgdesc='A library to manipulate gettext files'
url='https://pypi.python.org/pypi/polib'
arch=('any')
license=('MIT')
-depends=('python2')
+depends=('python' 'python2')
source=("https://pypi.python.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('43ce60d05ffa442ba9d3c5722193aadb93c38174b9fb471c8ea7ccbf8349bbca')
build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
- python2 setup.py build
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python ./setup.py build
}
-package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
- python2 setup.py install --root="${pkgdir}" --optimize=1
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+package_python-polib() {
+ depends=('python')
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
}
+
+package_python2-polib() {
+ depends=('python2')
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}
More information about the arch-commits
mailing list