summaryrefslogtreecommitdiff
path: root/pcr/python-lz4/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-24 16:33:26 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-24 16:33:33 +0100
commitdec5d53e809d2aafd4ace75903b8bc336347a19a (patch)
treec5d22e9626ebc82c1293ac5aa84cf995fa7e9f83 /pcr/python-lz4/PKGBUILD
parentf2b572d50b2c546696434b6863e2c635d261a1e8 (diff)
downloadabslibre-dec5d53e809d2aafd4ace75903b8bc336347a19a.tar.gz
abslibre-dec5d53e809d2aafd4ace75903b8bc336347a19a.tar.bz2
abslibre-dec5d53e809d2aafd4ace75903b8bc336347a19a.zip
pcr/python-lz4: added split package for python2-lz4
Diffstat (limited to 'pcr/python-lz4/PKGBUILD')
-rw-r--r--[-rwxr-xr-x]pcr/python-lz4/PKGBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/pcr/python-lz4/PKGBUILD b/pcr/python-lz4/PKGBUILD
index 7f3f90077..8a3280f9a 100755..100644
--- a/pcr/python-lz4/PKGBUILD
+++ b/pcr/python-lz4/PKGBUILD
@@ -5,20 +5,27 @@
# parabola changes and rationale:
# - added missing makedepends: python-setuptools-scm
+# - added split package for python2-lz4
-pkgname=python-lz4
+pkgname=(python-lz4 python2-lz4)
pkgver=0.11.1
pkgrel=1
pkgdesc="LZ4 Bindings for Python"
arch=('any')
url="https://pypi.python.org/pypi/lz4"
license=('BSD')
-makedepends=('python-distribute' 'python-setuptools-scm')
-depends=('python3')
+makedepends=('python-distribute' 'python2-distribute' 'python-setuptools-scm' 'python2-setuptools-scm')
source=("https://pypi.python.org/packages/3c/00/668df8820cfafe54257a1e2e723c9bfcd1bd88f5ffe250b6fc6c0cef0fd1/lz4-$pkgver.tar.gz")
md5sums=('2a7d1d8669046c380ad69dbd9db4db94')
-package() {
+package_python-lz4() {
+ depends=('python3')
cd $srcdir/lz4-$pkgver
- python3 setup.py install --root=$pkgdir || return 1
+ python3 setup.py install --root=$pkgdir
+}
+
+package_python2-lz4() {
+ depends=('python2')
+ cd $srcdir/lz4-$pkgver
+ python2 setup.py install --root=$pkgdir
}