summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}