summaryrefslogtreecommitdiff
path: root/repo/system/python-mako.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-01 23:38:59 +0000
committerdavidovski <david@davidovski.xyz>2022-02-01 23:38:59 +0000
commite0ce896aff4cf592eae91b269a6a846af0545336 (patch)
treea22090aa6592c6133da54e55ad802916fd53ecd7 /repo/system/python-mako.xibuild
parent9efd27b88edd1d4aec176558f59df2e00c40618d (diff)
added gobject introspection to glib
Diffstat (limited to 'repo/system/python-mako.xibuild')
-rw-r--r--repo/system/python-mako.xibuild22
1 files changed, 22 insertions, 0 deletions
diff --git a/repo/system/python-mako.xibuild b/repo/system/python-mako.xibuild
new file mode 100644
index 0000000..b83def2
--- /dev/null
+++ b/repo/system/python-mako.xibuild
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+MAKEDEPS=(python )
+DEPS=(python-markupsafe python-beaker python-setuptools)
+
+PKG_VER=1.1.6
+SOURCE=https://files.pythonhosted.org/packages/source/M/Mako/Mako-$PKG_VER.tar.gz
+DESC="A super-fast templating language that borrows the best ideas from the existing templating languages"
+
+prepare() {
+ sed -e '/\[tool:pytest\]/a filterwarnings =\n error\n ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' \
+ -e 's/-W error//' \
+ -i setup.cfg
+}
+
+build() {
+ python setup.py build
+}
+
+package () {
+ python3 setup.py install --root="$PKG_DEST" --optimize=1
+}