summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e0a7e857ff08ab8d4d886c7ff7d3a3feed7188e (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
# Maintainer: Stefan Biereigel <stefan@biereigel.de>

pkgname=python-csxcad-git
pkgver=v0.6.2.r83.g21a0ea1
pkgrel=1
pkgdesc="A C++ library to describe geometrical objects and their physical or non-physical properties."
url="https://github.com/thliebig/CSXCAD"
arch=('i686' 'x86_64')
license=('LGPL3')
depends=('csxcad')
makedepends=('cython')
provides=('python-csxcad')
conflicts=('python-csxcad')

source=(git+https://github.com/thliebig/CSXCAD)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/CSXCAD"
  git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/CSXCAD/python"
  python setup.py build
}

package() {
  cd "$srcdir/CSXCAD/python"
  python setup.py install --root=${pkgdir}
}