Date: Saturday, October 8, 2022 @ 21:55:26
  Author: grawlinson
Revision: 1324441

archrelease: copy trunk to community-any

Added:
  python-uri-template/repos/community-any/PKGBUILD
    (from rev 1324440, python-uri-template/trunk/PKGBUILD)
Deleted:
  python-uri-template/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  108 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 58 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-08 21:54:35 UTC (rev 1324440)
+++ PKGBUILD    2022-10-08 21:55:26 UTC (rev 1324441)
@@ -1,50 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-
-pkgname=python-uri-template
-pkgver=1.2.0
-pkgrel=1
-pkgdesc='An implementation of RFC 6570 URI Templates'
-arch=('any')
-url='https://github.com/plinss/uri_template'
-license=('MIT')
-depends=('python')
-makedepends=(
-  'git'
-  'python-build'
-  'python-installer'
-  'python-wheel'
-  'python-setuptools'
-)
-_commit='ae070b1716c853fbc5a3c879e6ef1d1cfb2c9533'
-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
-}
-
-check() {
-  cd "$pkgname"
-
-  python test.py
-}
-
-package() {
-  cd "$pkgname"
-
-  python -m installer --destdir="$pkgdir" dist/*.whl
-
-  # documentation
-  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-
-  # license
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-}

Copied: python-uri-template/repos/community-any/PKGBUILD (from rev 1324440, 
python-uri-template/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-08 21:55:26 UTC (rev 1324441)
@@ -0,0 +1,58 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-uri-template
+pkgver=1.2.0
+pkgrel=1
+pkgdesc='An implementation of RFC 6570 URI Templates'
+arch=('any')
+url='https://github.com/plinss/uri_template'
+license=('MIT')
+depends=('python')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+_commit='ae070b1716c853fbc5a3c879e6ef1d1cfb2c9533'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # below string is extracted from upstream's setup.py
+  # version='0.0.0',  # version will get replaced by git version tag - do not 
edit
+  sed -e "s:\(version='\)0.0.0:\1$pkgver:" -i setup.py
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  python test.py
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Reply via email to