Date: Sunday, January 22, 2023 @ 07:15:59 Author: grawlinson Revision: 1387650
addpkg: python-apeye-core 1.1.0-1 Added: python-apeye-core/ python-apeye-core/repos/ python-apeye-core/trunk/ python-apeye-core/trunk/PKGBUILD ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Added: python-apeye-core/trunk/PKGBUILD =================================================================== --- python-apeye-core/trunk/PKGBUILD (rev 0) +++ python-apeye-core/trunk/PKGBUILD 2023-01-22 07:15:59 UTC (rev 1387650) @@ -0,0 +1,46 @@ +# Maintainer: George Rawlinson <[email protected]> + +pkgname=python-apeye-core +pkgver=1.1.0 +pkgrel=1 +pkgdesc='Core (offline) functionality for the apeye library' +arch=('any') +url='https://github.com/domdfcoding/apeye-core' +license=('MIT') +depends=( + 'python' + 'python-domdf-python-tools' + 'python-idna' +) +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-hatch-requirements-txt' +) +#checkdepends=('') +#optdepends=('') +_commit='6d41d1bf4f53f0a615f601f4f276d83a5d8dda1e' +source=("$pkgname::git+https://github.com/domdfcoding/apeye-core#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgname" + + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" dist/*.whl + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +}
