summaryrefslogtreecommitdiff
path: root/pcr/printrun
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-23 03:08:31 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-23 03:08:31 -0500
commit91884bb318255d573946494b78bedd76a0085d65 (patch)
tree39d583e8d4a64ba9c9888fc912b8c0a8995c3998 /pcr/printrun
parent83ae03d05933f57495d41cf2cf376f688f28967a (diff)
downloadabslibre-91884bb318255d573946494b78bedd76a0085d65.tar.gz
abslibre-91884bb318255d573946494b78bedd76a0085d65.tar.bz2
abslibre-91884bb318255d573946494b78bedd76a0085d65.zip
add pcr/printrun{,-stable}
Diffstat (limited to 'pcr/printrun')
-rw-r--r--pcr/printrun/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/pcr/printrun/PKGBUILD b/pcr/printrun/PKGBUILD
new file mode 100644
index 000000000..4d4788911
--- /dev/null
+++ b/pcr/printrun/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=printrun
+pkgver=20140126
+pkgdesc="Host software for 3D printing"
+url="https://github.com/kliment/Printrun"
+license=('GPL3') # GPLv3+
+
+pkgrel=1
+arch=('any')
+depends=('python2-pyserial' 'python2-pyglet' 'wxpython')
+optdepends=(
+ 'python2-numpy: for 3D view'
+ 'python2-cairo: for Projector feature'
+# 'python2-tornado: for prontserve'
+)
+
+source=("https://repo.parabolagnulinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz")
+md5sums=('d8b04115306d7b6b07d712af15383db7')
+
+mkdepends=('git')
+mksource=("$pkgname-$pkgver::git://github.com/kliment/Printrun.git#tag=$pkgname-$pkgver")
+mkmd5sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --prefix=/usr
+
+ local file
+ for file in "$pkgdir"/usr/bin/*.py; do
+ mv "$file" "${file%.py}"
+ done
+}