Date: Thursday, April 6, 2023 @ 13:31:43
  Author: felixonmars
Revision: 1438912

archrelease: copy trunk to community-staging-any

Added:
  python-uritemplate/repos/community-staging-any/
  python-uritemplate/repos/community-staging-any/PKGBUILD
    (from rev 1438909, python-uritemplate/trunk/PKGBUILD)

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

Copied: python-uritemplate/repos/community-staging-any/PKGBUILD (from rev 
1438909, python-uritemplate/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 13:31:43 UTC (rev 1438912)
@@ -0,0 +1,27 @@
+# Maintainer: Andrzej Giniewicz <[email protected]>
+
+pkgname=python-uritemplate
+pkgver=4.1.1
+pkgrel=2
+pkgdesc="a Python implementation of RFC6570"
+arch=('any')
+url="https://uritemplate.readthedocs.io/";
+license=('Apache' 'BSD')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://github.com/sigmavirus24/uritemplate/archive/${pkgver}.tar.gz";)
+sha256sums=('64cae94edd83bbb0c2c49b15f2cb8192c3f8492af6bc468211d1e8b8496f5791')
+
+build() {
+  cd "$srcdir"/uritemplate-${pkgver}
+  python setup.py build
+}
+
+package() {
+  cd "$srcdir"/uritemplate-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE.APACHE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.APACHE
+  install -Dm644 LICENSE.BSD "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.BSD
+}

Reply via email to