aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pikepdf/APKBUILD
blob: ab0c40e20a925e6732aa0a272d48a34e9c4d0162 (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.6.3
pkgrel=1
pkgdesc="A Python library for reading and writing PDF"
url=https://github.com/pikepdf/pikepdf
arch=all
license="MPL-2.0"
depends="python3 py3-lxml"
makedepends="py3-pybind11-dev py3-setuptools 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="63091fc6878f0da63589b3342255913bf6045f72e1813576d69861d09796f405926a4af4dd9c87a49a967a1e9df140125b3a36dedeb9c73b0b067139b6d5414b  pikepdf-1.6.3.tar.gz"