Skip to content

Instantly share code, notes, and snippets.

@xoan
Last active April 8, 2018 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xoan/5d05406c7abca71be58c8631e621d424 to your computer and use it in GitHub Desktop.
Save xoan/5d05406c7abca71be58c8631e621d424 to your computer and use it in GitHub Desktop.
PKGBUILD for printrun-git
# Contributor: Richard Kakaš <richard.kakas@gmail.com>
# Contributor: Eric Anderson <ejona86@gmail.com>
# Maintainer: Dan Panzarella <alsoelp@gmail.com>
pkgname=printrun-git
_gitname='Printrun'
pkgver=2.0.0rc5.12.gb48fe7b
pkgrel=1
epoch=1
pkgdesc='Pronterface, Pronsole, and Printcore - Pure Python 3D printing host software and GUI'
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url='https://github.com/kliment/Printrun'
license=('GPL')
provides=('printrun')
conflicts=('printrun')
depends=('python-pyserial' 'python-wxpython' 'python-pyglet' 'desktop-file-utils' 'python-appdirs')
optdepends=(
'python-cairo: to use Projector feature'
'python-cairosvg: to use Projector feature'
'python-numpy: for 3D view'
'python-dbus: to inhibit sleep when printing'
'python-psutil: to increase process priority when printing')
makedepends=('git' 'cython')
install="${pkgname}.install"
source=('git://github.com/kliment/Printrun.git')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --tags --always | sed 's/printrun-//' | sed 's|-|.|g'
}
build() {
cd "${srcdir}/${_gitname}"
python setup.py build
python setup.py build_ext --inplace
}
package() {
cd "${srcdir}/${_gitname}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
post_install() {
post_upgrade
}
post_upgrade() {
update-desktop-database -q
}
post_remove() {
post_upgrade
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment