diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-22 14:19:58 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-22 14:21:35 +0000 |
commit | d0385d67651df9190488dc9e8e13043e453bb900 (patch) | |
tree | d76a0c3cf871d700ecf162cc771bcb088aaef14d /community | |
parent | 30bce4f86f036808d552ba2cb35fa5cc7996e17f (diff) | |
download | aports-d0385d67651df9190488dc9e8e13043e453bb900.tar.bz2 aports-d0385d67651df9190488dc9e8e13043e453bb900.tar.xz |
community/py-pypdf2: moved from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/py-pypdf2/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/py-pypdf2/APKBUILD b/community/py-pypdf2/APKBUILD new file mode 100644 index 0000000000..f2c0a8973c --- /dev/null +++ b/community/py-pypdf2/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py-pypdf2 +_pkgname=PyPDF2 +pkgver=1.26.0 +pkgrel=1 +pkgdesc="A Pure-Python library built as a PDF toolkit." +url=" http://mstamy2.github.com/PyPDF2" +arch="noarch" +license="BSD" +depends="" +makedepends="python2-dev py-setuptools python3-dev" +install="" +subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python=$1 + pkgdesc="$pkgdesc - $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + _py python2 + replaces="$pkgname" +} + +_py3() { + _py python3 +} + +md5sums="2301acc0ecbab0633d4c9b883d50ee5e PyPDF2-1.26.0.tar.gz" +sha256sums="e28f902f2f0a1603ea95ebe21dff311ef09be3d0f0ef29a3e44a932729564385 PyPDF2-1.26.0.tar.gz" +sha512sums="7b427f1d099dcd687a718fb8d86e6f677ad45257414c6367e4dfacd8dfef7e3dbe3816027359868764981f36a30721f1731b4c23cbe2f35cfab1c64fb290b034 PyPDF2-1.26.0.tar.gz" |