[arch-commits] Commit in (4 files)

Christian Rebischke shibumi at archlinux.org
Sun Sep 20 13:57:52 UTC 2020


    Date: Sunday, September 20, 2020 @ 13:57:51
  Author: shibumi
Revision: 711101

add new package as dep for glances

Added:
  python-pystache/
  python-pystache/repos/
  python-pystache/trunk/
  python-pystache/trunk/PKGBUILD

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

Added: python-pystache/trunk/PKGBUILD
===================================================================
--- python-pystache/trunk/PKGBUILD	                        (rev 0)
+++ python-pystache/trunk/PKGBUILD	2020-09-20 13:57:51 UTC (rev 711101)
@@ -0,0 +1,36 @@
+# Contributor: Florian Klink <flokli at flokli dot de>
+pkgname=python-pystache
+_pkgname=pystache
+pkgver=0.5.4
+pkgrel=7
+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")
+sha256sums=('163f5b8fb45f6be3a5074a53a47e79ef51ec015ee43f3ec34b16be279147c96f')
+
+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