# Maintainer: ByteHamster # Contributor: Jake # Contributor: Aurelien Cibrario # Contributor: David Manouchehri # Contributor: Peter-Paul van Gemerden # Contributor: Karsten Hinz pkgname=pycam-git pkgver=0.7.0pre0.r297.g55e3129f pkgrel=1 pkgdesc='Toolpath generator for 3-axis CNC machining, written in Python.' arch=('i686' 'x86_64') url='https://github.com/SebKuzminsky/pycam' license=('GPL3') makedepends=('git') depends=('python-gobject' 'python-opengl' 'python-svg.path' 'python-yaml') conflicts=('pycam') source=('git+https://github.com/SebKuzminsky/pycam.git' 'launcher.sh') sha512sums=('SKIP' '6a16811823683a9c50b076714259d7bbfebd8be7dbf156da803b681dcc252b9984100690d55db82a30ddad81db4f10eeb5dd7f8abd00dee0fb1dfee7e81d1c18') pkgver() { cd "${srcdir}/pycam" # Generate git tag based version. Use only tags created on current branch (--first-parent). git describe --long --tags --first-parent | sed 's/^v//;s/^\([0-9][0-9.]*\)-\([a-zA-Z]\+\)/\1\2/;s/\([0-9]\+-g\)/r\1/;s/-/./g' } package() { # Application mkdir -p "${pkgdir}/usr/share/" cp -R "${srcdir}/pycam" "${pkgdir}/usr/share/pycam-git" # Start script install -Dm755 "${srcdir}/launcher.sh" "${pkgdir}/usr/bin/pycam" # freedesktop.org compatibility install -Dm644 "${srcdir}/pycam/share/desktop/pycam.desktop" "${pkgdir}/usr/share/applications/pycam.desktop" install -Dm644 "${srcdir}/pycam/share/mime/icons/32x32/application-sla.png" "${pkgdir}/usr/share/pixmaps/pycam.png" install -Dm644 "${srcdir}/pycam/share/mime/application-sla.svg" "${pkgdir}/usr/share/pixmaps/pycam.svg" install -Dm644 "${srcdir}/pycam/share/mime/pycam.xml" "${pkgdir}/usr/share/mime/application/pycam.xml" }