summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25f2959bdf41fcacf71340e6994bfac73b8eab97 (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
# Maintainer: Konrad Beckmann <konrad.beckmann@gmail.com>

_pkgname=AppCSXCAD
pkgname=appcsxcad-git
pkgver=20200104
pkgrel=1
pkgdesc="Minimal GUI Application using the QCSXCAD library. Built from git."
arch=('x86_64')
url="https://github.com/thliebig/$_pkgname"
license=('GPL')
depends=("csxcad-git" "openems-git" "qcsxcad" "hdf5" "vtk" "qt5-base" "qt5-x11extras")
provides=('appcsxcad')
conflicts=('appcsxcad')
makedepends=('git' 'cmake')
source=("git+https://github.com/thliebig/$_pkgname")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

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

package() {
  cd "$srcdir/$_pkgname/build"
  make DESTDIR="$pkgdir" install
}