Date: Thursday, September 29, 2022 @ 16:38:36
  Author: arojas
Revision: 1316536

archrelease: copy trunk to community-any

Added:
  python-pystache/repos/community-any/PKGBUILD
    (from rev 1316535, python-pystache/trunk/PKGBUILD)
Deleted:
  python-pystache/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   76 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 38 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-29 16:38:26 UTC (rev 1316535)
+++ PKGBUILD    2022-09-29 16:38:36 UTC (rev 1316536)
@@ -1,38 +0,0 @@
-# Maintainer:
-# Contributor: Florian Klink <flokli at flokli dot de>
-
-pkgname=python-pystache
-_pkgname=pystache
-pkgver=0.6.0
-pkgrel=10
-pkgdesc='The mustache template engine written in python'
-arch=(any)
-url='https://github.com/sarnold/pystache'
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-source=("https://github.com/sarnold/$_pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('b8aa98c6c7cb1f7bbdf0bc859bce5dc259ff28290b0f9bc68d9a9e38e83dd3947a6130c370d4def0811827fd09c6e1bbffe5af098c6233819c7ef0b38bcab9fd')
-
-build() {
-  cd "$_pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$_pkgname-$pkgver"
-  # This package uses 2to3 to convert itself to Python 3 on the fly
-  # So we need to jump through some hoops here
-  test_dir="../test_dir"
-  rm -rf "$test_dir"
-  mkdir "$test_dir"
-  python setup.py install --root="$test_dir"
-  PYTHONPATH=$(readlink -e "$test_dir"/usr/lib/python*/site-packages/) \
-       "$test_dir"/usr/bin/pystache-test .
-}
-
-package() {
-  cd "$_pkgname-$pkgver"
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
-}

Copied: python-pystache/repos/community-any/PKGBUILD (from rev 1316535, 
python-pystache/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-09-29 16:38:36 UTC (rev 1316536)
@@ -0,0 +1,38 @@
+# Maintainer:
+# Contributor: Florian Klink <flokli at flokli dot de>
+
+pkgname=python-pystache
+_pkgname=pystache
+pkgver=0.6.1
+pkgrel=1
+pkgdesc='The mustache template engine written in python'
+arch=(any)
+url='https://github.com/PennyDreadfulMTG/pystache'
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+source=("https://github.com/PennyDreadfulMTG/$_pkgname/archive/v$pkgver/$_pkgname-$pkgver.tar.gz";)
+sha512sums=('516d286f84d2c77650550365f6b219acb712376f0b7302fff2aba7dee4d64e3d3fc2d781782777dd37093f6debf52f9d2a40b6ed8b65aa5f7025ff762cb5efae')
+
+build() {
+  cd "$_pkgname-$pkgver"
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$_pkgname-$pkgver"
+  # This package uses 2to3 to convert itself to Python 3 on the fly
+  # So we need to jump through some hoops here
+  test_dir="../test_dir"
+  rm -rf "$test_dir"
+  mkdir "$test_dir"
+  python -m installer --destdir="$test_dir" dist/*.whl
+  PYTHONPATH=$(readlink -e "$test_dir"/usr/lib/python*/site-packages/) \
+       "$test_dir"/usr/bin/pystache-test .
+}
+
+package() {
+  cd "$_pkgname-$pkgver"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}

Reply via email to