blob: dc7588b4a3bcaab6a483bd45b7e59945ef7ced61 (
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
|
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
_base=pdf2docx
pkgname=python-${_base}
pkgver=0.5.10
pkgrel=1
pkgdesc="A Python library for converting pdf to docx"
arch=('any')
url="https://github.com/artifexsoftware/${_base}"
license=('AGPL-3.0-only')
depends=('python')
depends=('python' 'python-pymupdf' 'python-docx' 'python-fonttools' 'python-numpy' 'python-opencv' 'python-fire')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz"::${url}/archive/refs/tags/v${pkgver}.tar.gz)
b2sums=('0c78ca007a59a49296f58474afdda5ed5c606798cc43f36e40236ef0b2c71f73252e2cfe86f787b52091b8048b4825ed6fdbc22730c9381aa516037e67f13e6d')
prepare() {
cd "${_base}-${pkgver}"
}
build() {
cd "${_base}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_base}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|