blob: 684230d7e98b11f8552eb7d31032d760a6273e7a (
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
|
# Maintainer: Lex Black <autumn-wind@web.de>
_module=ocrmypdf-papermerge
pkgname=python-${_module}
pkgver=0.7.0
pkgrel=1
pkgdesc="OCRmyPDF Papermerge plugin"
arch=(any)
url="https://github.com/papermerge/OCRmyPDF_papermerge"
license=(Apache)
depends=(ocrmypdf python-jinja python-lxml)
makedepends=(python-build python-installer python-wheel python-poetry-core)
source=(https://files.pythonhosted.org/packages/source/${_module::1}/$_module/${_module//-/_}-$pkgver.tar.gz
001_files-in-base.patch)
sha256sums=('4de03a7abf4232b1491e18783135958c8adace4e262273561f5efb3b50927df2'
'b2f940c015e006ee98926e75fdd62a7241ccb5a3d4b91e3d29ff2bb06eed6194')
prepare() {
cd "${_module//-/_}-${pkgver}"
# Without this patch files would get installed into base site-packages dir
patch -Np1 -i "${srcdir}"/001_files-in-base.patch
}
build() {
cd "${_module//-/_}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_module//-/_}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|