diff options
author | rkcf | 2019-04-24 09:36:48 -0700 |
---|---|---|
committer | rkcf | 2019-04-24 09:36:48 -0700 |
commit | 7a582efbe66249e372aa6724d9455614bdae8ed0 (patch) | |
tree | ef6d694bcc98722d80f6231b3c665706cb8ca617 | |
parent | 6141f030d080076ee31fcd2b281d659761f9ef68 (diff) | |
download | aur-7a582efbe66249e372aa6724d9455614bdae8ed0.tar.gz |
update to split python2/3 package
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 41 insertions, 10 deletions
@@ -1,16 +1,28 @@ pkgbase = python-arabic-reshaper pkgdesc = Reconstruct Arabic sentences to be used in applications that don't support Arabic pkgver = 2.0.14 - pkgrel = 2 + pkgrel = 3 url = https://github.com/mpcabd/python-arabic-reshaper arch = any license = GPL3 makedepends = python-setuptools - depends = python - depends = python-future - depends = python2-configparser + makedepends = python2-setuptools + makedepends = python-future + makedepends = python2-future + makedepends = python2-configparser source = https://github.com/mpcabd/python-arabic-reshaper/archive/v2.0.14.tar.gz md5sums = 96c0bf23cbf5396f2bb8e564f4b90739 pkgname = python-arabic-reshaper + depends = python + depends = python-future + depends = python-setuptools + provides = python-arabic-reshaper + +pkgname = python2-arabic-reshaper + depends = python2 + depends = python2-configparser + depends = python2-future + depends = python2-setuptools + provides = python2-arabic-reshaper @@ -1,25 +1,44 @@ # Maintainer: Andrew Steinke <rkcf@rkcf.me> -pkgname=python-arabic-reshaper -pkgrel=2 +pkgbase=python-arabic-reshaper +pkgname=('python-arabic-reshaper' 'python2-arabic-reshaper') pkgver=2.0.14 +pkgrel=3 pkgdesc="Reconstruct Arabic sentences to be used in applications that don't support Arabic" -depends=('python' 'python-future' 'python2-configparser') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python2-setuptools' 'python-future' 'python2-future' 'python2-configparser') url="https://github.com/mpcabd/python-arabic-reshaper" license=('GPL3') arch=('any') source=("$url/archive/v$pkgver.tar.gz") md5sums=('96c0bf23cbf5396f2bb8e564f4b90739') +prepare() { + cp -a $pkgname-$pkgver{,-py2} + + # remove configparser requirement for python3 + sed -i "s/'configparser', //" $srcdir/$pkgname-$pkgver/setup.py +} + build() { cd "$srcdir/$pkgname-$pkgver" python setup.py build + + cd "$srcdir/$pkgname-$pkgver-py2" + python2 setup.py build } -package() { - cd "$srcdir/$pkgname-$pkgver" +package_python-arabic-reshaper() { + depends=('python' 'python-future' 'python-setuptools') + provides=('python-arabic-reshaper') + cd "$srcdir/python-arabic-reshaper-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build } +package_python2-arabic-reshaper() { + depends=('python2' 'python2-configparser' 'python2-future' 'python2-setuptools') + provides=('python2-arabic-reshaper') + cd "$srcdir/python-arabic-reshaper-$pkgver-py2" + python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build +} + # vim:set ts=2 sw=2 et: |