aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pypdf2/APKBUILD
blob: 0c8a934c5bc8dae453b2c190241e9831c47c92af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-pypdf2
_pkgname=PyPDF2
pkgver=1.26.0
pkgrel=5
pkgdesc="Pure-Python library built as a PDF toolkit"
url="https://github.com/mstamy2/PyPDF2"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-pypdf2 # Backwards compatibility
provides=py-pypdf2=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="7b427f1d099dcd687a718fb8d86e6f677ad45257414c6367e4dfacd8dfef7e3dbe3816027359868764981f36a30721f1731b4c23cbe2f35cfab1c64fb290b034  PyPDF2-1.26.0.tar.gz"