Date: Sunday, January 22, 2023 @ 07:05:51
  Author: grawlinson
Revision: 1387644

addpkg: python-hatch-requirements-txt 0.3.0-1

Added:
  python-hatch-requirements-txt/
  python-hatch-requirements-txt/repos/
  python-hatch-requirements-txt/trunk/
  python-hatch-requirements-txt/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Added: python-hatch-requirements-txt/trunk/PKGBUILD
===================================================================
--- python-hatch-requirements-txt/trunk/PKGBUILD                                
(rev 0)
+++ python-hatch-requirements-txt/trunk/PKGBUILD        2023-01-22 07:05:51 UTC 
(rev 1387644)
@@ -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
+}

Reply via email to