From dec5d53e809d2aafd4ace75903b8bc336347a19a Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Wed, 24 Jan 2018 16:33:26 +0100 Subject: pcr/python-lz4: added split package for python2-lz4 --- pcr/python-lz4/PKGBUILD | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) mode change 100755 => 100644 pcr/python-lz4/PKGBUILD diff --git a/pcr/python-lz4/PKGBUILD b/pcr/python-lz4/PKGBUILD old mode 100755 new mode 100644 index 7f3f90077..8a3280f9a --- 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 } -- cgit v1.2.3