blob: 0773e7145d262b9b1a7c6ce34f04572e84d9301e (
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
|
# Maintainer: Hans-Nikolai Viessmann <hans AT viess DOT mn>
pkgname=python-pypdf3
_name=PyPDF3
pkgver=1.0.6
pkgrel=4
pkgdesc="Pure-Python PDF library for splitting, merging, cropping, and transforming PDF pages."
arch=('any')
url="https://github.com/sfneal/PyPDF3"
license=('custom')
depends=('python-tqdm')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('c946f3273419e37258e35e72273f49904ab15723d87a761c1115ef99799f8c5f')
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|