summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67d0713efcb1b423822e0b3b982700ad9d50e408 (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
43
44
# Maintainer: ByteHamster <info at bytehamster dot com>
# Contributor: Jake <aur@ja-ke.tech>
# Contributor: Aurelien Cibrario <aurelien.cibrario at gmail dot com>
# Contributor: David Manouchehri <manouchehri at riseup dot net>
# Contributor: Peter-Paul van Gemerden <info at ppvg dot nl>
# Contributor: Karsten Hinz <k.hinz at tu-bs dot de>

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"
}