blob: 4e1b9cc50c32fe376e515f784ff5a5c348dd1b04 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-img2pdf
pkgver=0.4.4
pkgrel=1
pkgdesc="Convert images to PDF via direct JPEG inclusion"
url="https://gitlab.mister-muffin.de/josch/img2pdf"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3 py3-pillow py3-pikepdf"
makedepends="py3-setuptools qpdf-dev libxml2-dev libxslt-dev py3-wheel"
checkdepends="py3-lxml python3-dev"
# no tests in pypi tarball
source="https://pypi.python.org/packages/source/i/img2pdf/img2pdf-$pkgver.tar.gz"
builddir="$srcdir/img2pdf-$pkgver"
replaces=py-img2pdf # Backwards compatibility
provides=py-img2pdf=$pkgver-r$pkgrel # Backwards compatibility
prepare() {
default_prepare
# remove interpreter line from libraries
sed -i '/#!\//d' src/*.py
}
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
56943cd965b3e6b0680b7696ca4b5a2ba779474f945dd0d2648fb6f18ab18aab6d74640f9bd8e9c8683e3e641b0657cb84c691054910d84f0c9e8ad733f179e9 img2pdf-0.4.4.tar.gz
"
|