diff options
author | Dmitry Kharitonov | 2016-08-13 17:26:52 +0500 |
---|---|---|
committer | Dmitry Kharitonov | 2016-08-13 17:26:52 +0500 |
commit | 8bfd16da546c9f5bf371aa626c76281f0062693f (patch) | |
tree | ecc042f43cc02d23d087803d5725be15f2df1df1 | |
parent | 800ad36ba21ff7a330c443a09104844dd588038e (diff) | |
download | aur-8bfd16da546c9f5bf371aa626c76281f0062693f.tar.gz |
Making the split package
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 42 insertions, 9 deletions
@@ -1,18 +1,26 @@ # Generated by mksrcinfo v8 -# Sat Aug 13 10:19:26 UTC 2016 +# Sat Aug 13 12:23:46 UTC 2016 pkgbase = python-djvulibre pkgdesc = A set of Python bindings for the DjVuLibre library pkgver = 0.8 - pkgrel = 2 + pkgrel = 3 url = http://jwilk.net/software/python-djvulibre arch = i686 arch = x86_64 license = GPL2 - makedepends = cython + makedepends = python-setuptools + makedepends = python2-setuptools depends = djvulibre - depends = python source = https://pypi.io/packages/source/p/python-djvulibre/python-djvulibre-0.8.tar.gz sha256sums = 9d6bf3143fa540e8ce330949c9edff7847ad7cd715f7c02e2991212873a5f31b pkgname = python-djvulibre + pkgdesc = A set of Python bindings for the DjVuLibre library 3 + depends = python + depends = cython + +pkgname = python2-djvulibre + pkgdesc = A set of Python bindings for the DjVuLibre library 2 + depends = python2 + depends = cython2 @@ -2,25 +2,50 @@ # Contributor: Francois Garillot <francois[@]garillot.net> # Contributor: Anton Bazhenov <anton.bazhenov at gmail> # Contributor: Malkov Fyodor aka krox <iksut@yandex.ru> +# Contributor: carstene1ns <arch carsten-teibes de> -pkgname=python-djvulibre +pkgbase=python-djvulibre +pkgname=(python-djvulibre python2-djvulibre) pkgver=0.8 -pkgrel=2 +pkgrel=3 pkgdesc="A set of Python bindings for the DjVuLibre library" arch=('i686' 'x86_64') url="http://jwilk.net/software/python-djvulibre" license=('GPL2') -depends=('djvulibre' 'python') -makedepends=('cython') +depends=('djvulibre') +makedepends=('python-setuptools' 'python2-setuptools') source=("https://pypi.io/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz") sha256sums=('9d6bf3143fa540e8ce330949c9edff7847ad7cd715f7c02e2991212873a5f31b') +prepare(){ + cp -rup ${pkgbase}-${pkgver} python2-djvulibre-${pkgver} + + cd "${srcdir}/python2-djvulibre-${pkgver}" + sed -i "s/'python'/'python2'/" setup.py +} + build() { + # build for python 3 cd "${srcdir}/${pkgname}-${pkgver}" python setup.py build + + # build for python 2 + cd "../python2-djvulibre-${pkgver}" + python2 setup.py build } -package() { +# package for python 3 +package_python-djvulibre() { + depends=('python' 'cython') + pkgdesc+=" 3" cd "${srcdir}/${pkgname}-${pkgver}" python setup.py install --root="${pkgdir}" } + +# package for python 2 +package_python2-djvulibre() { + depends=('python2' 'cython2') + pkgdesc+=" 2" + cd "${srcdir}/python2-djvulibre-${pkgver}" + python setup.py install --root="${pkgdir}" +} |