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

pkgname=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=('fparser' 'qt5-webkit' 'glew' 'proj' 'libharu' 'tinyxml' 'hdf5' 'vtk' 'boost' 'cgal')
makedepends=('cmake' 'cython')
provides=('csxcad')
conflicts=('csxcad')

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

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

prepare() {
  cd CSXCAD
  patch -Np1 -i ../fix-libdir.patch
}

build() {
  cd "$srcdir/CSXCAD"
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=${pkgdir} ../
  make
}

package() {
  cd "$srcdir/CSXCAD/build"
  make install
}