summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b0eb1d8b06e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python-gvgen
+ pkgdesc = Generates dot language files for easy scripting, to be processed with graphviz.
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/stricaud/gvgen
+ arch = any
+ license = GPL2
+ depends = python2
+ source = https://github.com/stricaud/gvgen/archive/refs/tags/v1.0.tar.gz
+ md5sums = 4f7430fbe65eee5d93c64b8f063b806f
+ sha256sums = 47510a6eb70a7a435bdcdf56e58b08a6bf3c8adf42e4ae5430d9fb9b7760872b
+
+pkgname = python-gvgen
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..da3fc590ab5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Chris Oelmueller <chris.oelmueller@gmail.com>
+# Contributor: Han Xiao <arak.hx@gmail.com>
+
+pkgname=python-gvgen
+_name=${pkgname#python-}
+pkgver=1.0
+pkgrel=1
+pkgdesc='Generates dot language files for easy scripting, to be processed with graphviz.'
+arch=('any')
+url='https://github.com/stricaud/gvgen'
+license=('GPL2')
+depends=('python2')
+makedepends=()
+source=("https://github.com/stricaud/${_name}/archive/refs/tags/v${pkgver}.tar.gz")
+md5sums=('4f7430fbe65eee5d93c64b8f063b806f')
+sha256sums=('47510a6eb70a7a435bdcdf56e58b08a6bf3c8adf42e4ae5430d9fb9b7760872b')
+
+PYTHON='python'
+
+build() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ $PYTHON setup.py build
+}
+
+package() {
+ cd "$srcdir/${_name}-${pkgver}"
+ $PYTHON setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}