community/py3-pdfminer: new aport

due to ocrmypdf
This commit is contained in:
Carlo Landmeter 2019-08-01 08:22:06 +00:00
parent 0fd223733b
commit 42ec43b14f

View File

@ -0,0 +1,34 @@
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pdfminer
_pyname=pdfminer.six
pkgver=20181108
pkgrel=0
pkgdesc="Python PDF Parser"
url="https://github.com/pdfminer/pdfminer.six"
arch=noarch
license="MIT"
depends="
python3
py3-chardet
py3-sortedcontainers
py3-six
py3-pycryptodome
"
makedepends="
py3-setuptools
python3-dev
"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir=$srcdir/$_pyname-$pkgver
options="!check" # has no check
build() {
python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="6683323d2217f6dd64a7b9c8304f3e924c4d7b392c357179cc30387d9d68dead9da77ab259a5e5f86d620a75c1d9d9e95fa398d981dd99a1b5cadbcf4e583efd pdfminer.six-20181108.tar.gz"