Date: Sunday, January 22, 2023 @ 07:16:56
Author: grawlinson
Revision: 1387651
archrelease: copy trunk to community-any
Added:
python-apeye-core/repos/community-any/
python-apeye-core/repos/community-any/PKGBUILD
(from rev 1387650, python-apeye-core/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: python-apeye-core/repos/community-any/PKGBUILD (from rev 1387650,
python-apeye-core/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2023-01-22 07:16:56 UTC (rev 1387651)
@@ -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
+}