summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Forencich2015-07-20 12:15:02 -0700
committerAlex Forencich2015-07-20 12:15:02 -0700
commit069e4a794e0539e8c5a09092d55e4c4fa2eb894d (patch)
tree7b5e32c8dc952677eb4bc69e15bdc54254edde4e
downloadaur-069e4a794e0539e8c5a09092d55e4c4fa2eb894d.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD34
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..65912613f74
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python2-hpgl-git
+ pkgdesc = Python HPGL Parsing Library
+ pkgver = 0.1.0.r0.gc06e73b
+ pkgrel = 1
+ url = https://github.com/alexforencich/python-hpgl
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python
+ provides = python2-hpgl
+ source = python-hpgl::git+https://github.com/alexforencich/python-hpgl.git
+ md5sums = SKIP
+
+pkgname = python2-hpgl-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..43444903e41
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Alex Forencich <alex@alexforencich.com>
+pkgname=python2-hpgl-git
+pkgver=0.1.0.r0.gc06e73b
+pkgrel=1
+pkgdesc="Python HPGL Parsing Library"
+arch=('any')
+url="https://github.com/alexforencich/python-hpgl"
+license=('MIT')
+depends=('python')
+makedepends=('git')
+provides=('python2-hpgl')
+
+_gitroot='https://github.com/alexforencich/python-hpgl.git'
+_gitname='python-hpgl'
+
+source=("$_gitname::git+$_gitroot")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ git describe --tags --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_gitname"
+ sed -i "s/'hpgl2svg/'python2-hpgl2svg/" setup.py
+ sed -i "s/'hprtl2bmp/'python2-hprtl2bmp/" setup.py
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ python2 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
+}
+