Date: Sunday, January 22, 2023 @ 07:06:56
Author: grawlinson
Revision: 1387645
archrelease: copy trunk to community-any
Added:
python-hatch-requirements-txt/repos/community-any/
python-hatch-requirements-txt/repos/community-any/PKGBUILD
(from rev 1387644, python-hatch-requirements-txt/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-hatch-requirements-txt/repos/community-any/PKGBUILD (from rev
1387644, python-hatch-requirements-txt/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2023-01-22 07:06:56 UTC (rev 1387645)
@@ -0,0 +1,41 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-hatch-requirements-txt
+pkgver=0.3.0
+pkgrel=1
+pkgdesc='Hatchling plugin to read project dependencies from requirements.txt'
+arch=('any')
+url='https://github.com/repo-helper/hatch-requirements-txt'
+license=('MIT')
+depends=('python' 'python-hatchling')
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+)
+#checkdepends=('')
+#optdepends=('')
+_commit='614cbe6febbbcac34f5ad3654deb420abe28a478'
+source=("$pkgname::git+$url#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
+}