pkgname=python2-pypdf2 pkgver=1.26.0 pkgrel=1 pkgdesc="PDF toolkit" arch=('any') url="https://github.com/mstamy2/PyPDF2" license=('BSD') depends=('python2') makedepends=('python2-setuptools') source=(https://github.com/mstamy2/PyPDF2/archive/${pkgver}.tar.gz) sha256sums=('140b1fed792f487f2fd814eb0e832a5b6ef5ae362da302c1fc5a9786d5acb469') package(){ cd "$srcdir/PyPDF2-$pkgver" python2 setup.py install --root="$pkgdir/" --optimize=1 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }