diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-24 03:17:10 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-24 03:17:10 +0000 |
commit | 15cd70d8180c2a45287e4bd8ce01a2a9248e8d62 (patch) | |
tree | 3a87c7cdfa5736a8fe7515db195d2b8baf7857fd /pcr/printrun-stable/PKGBUILD | |
parent | 1d20e4962664ab152948a14b4320b12204a1053e (diff) |
Mon Feb 24 03:14:11 UTC 2014
Diffstat (limited to 'pcr/printrun-stable/PKGBUILD')
-rw-r--r-- | pcr/printrun-stable/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pcr/printrun-stable/PKGBUILD b/pcr/printrun-stable/PKGBUILD new file mode 100644 index 000000000..f8f2bd4df --- /dev/null +++ b/pcr/printrun-stable/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=printrun +pkgname=printrun-stable +pkgver=20130604 +pkgdesc="Host software for 3D printing" +url="https://github.com/kliment/Printrun" +license=('GPL3') # GPLv3+ + +provides=("${_pkgname}-${pkgver}") +conflicts=("${_pkgname}") + +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=('bc19f5b4570e178d435da04747c18e42') + +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 +} |