desktop/python-pypdf/PKGBUILD

33 lines
862 B
Bash
Raw Normal View History

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-pypdf
pkgver=1.12
pkgrel=2
pkgdesc="A Pure-Python library built as a PDF toolkit"
arch=('any')
url="http://pybrary.net/pyPdf"
license=('BSD')
depends=('python2')
source=(http://pybrary.net/pyPdf/pyPdf-$pkgver.tar.gz
license.txt
pypdf_hashlib_frozenset_unicode.patch)
md5sums=('7be5f7f4659f64fd194e9eb9a38ad425'
'19b1b4bc0a9a8c4b7b2f5689a16cec2c'
'08361260188b3719d52f3e8bb00ff86f')
build() {
cd ${srcdir}/pyPdf-${pkgver}
patch -p1 < ${srcdir}/pypdf_hashlib_frozenset_unicode.patch
python2 setup.py install --root=${pkgdir}
install -D -m644 ../license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}