aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pikepdf/APKBUILD
blob: db77c8dc5490c8308abb2cf0026e5fa5dd28e406 (plain)
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
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pikepdf
_pyname=pikepdf
pkgver=1.11.1
pkgrel=0
pkgdesc="A Python library for reading and writing PDF"
url=https://github.com/pikepdf/pikepdf
arch="all"
license="MPL-2.0"
depends="py3-lxml py3-pybind11>=2.4.3 py3-setuptools python3"
makedepends="py3-pybind11-dev python3-dev qpdf-dev"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir=$srcdir/$_pyname-$pkgver
options="!check" # tests fail to import pikepdf

build() {
	python3 setup.py build
}

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

sha512sums="8a8dc8a9106399e08d63783cd76c3c794b66f076303208bab3fbed55014a402457bfeebe16bcf0f0f973708fbe09c0524e43ac88a3746a30ef66e31b9b0314a3  pikepdf-1.11.1.tar.gz"