summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05b7fc14187d317f24857ceb4f3909d8983f820b (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
# Maintainer: Matyas Mehn <matyas.mehn at tum dot de>
# PKGBUILD adapted from: Daniel Landau <aur@landau.fi> https://aur.archlinux.org/packages/qcsxcad

_pkgname=QCSXCAD
pkgname=qcsxcad-git
provides=("qcsxcad")
conflicts=("qcsxcad")
pkgver=20220317
pkgrel=1
pkgdesc="Qt-GUI for CSXCAD"
arch=("x86_64")
url="https://github.com/thliebig/$_pkgname"
license=("LGPL3")
depends=("csxcad-git" "openems" "tinyxml" "vtk" "qt5-base" "ospray" "openvr" "pdal" "liblas" "adios2" "gl2ps" "cgns" "openmpi" "openmp" "eigen" "utf8cpp")
makedepends=("cmake" "python-mpi4py")
optdepends=()
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/ .*//'
}

prepare() {
  cd "${srcdir}/${_pkgname}"
  mkdir -p build
}

build() {
  cd "${srcdir}/${_pkgname}/build"
  cmake ..
  make
}

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