summaryrefslogtreecommitdiff
path: root/pcr/printrun-stable/PKGBUILD
blob: f8f2bd4df9c7a436d277453a7ca6a80865a6235c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
}