[arch-commits] Commit in python-pystache/repos (community-any community-any/PKGBUILD)

Christian Rebischke shibumi at archlinux.org
Sun Sep 20 14:00:54 UTC 2020


    Date: Sunday, September 20, 2020 @ 14:00:53
  Author: shibumi
Revision: 711103

archrelease: copy trunk to community-any

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

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

Copied: python-pystache/repos/community-any/PKGBUILD (from rev 711102, python-pystache/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-09-20 14:00:53 UTC (rev 711103)
@@ -0,0 +1,36 @@
+# Contributor: Florian Klink <flokli at flokli dot de>
+pkgname=python-pystache
+_pkgname=pystache
+pkgver=0.5.4
+pkgrel=8
+pkgdesc="The mustache template engine written in python"
+arch=("any")
+url="http://github.com/defunkt/pystache"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/defunkt/$_pkgname/archive/v$pkgver.tar.gz")
+sha512sums=('2a65c2de457bd2666d40697a4ae709030a1c0fc9583554065c0f04478f247b460ce4c27374fdd1efa620cd7dc4b760d5752ccadc429ddd155ab3b7da8360835a')
+
+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
+}



More information about the arch-commits mailing list