summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e223b8aa747c230033c72f1ce059b98be7c0824 (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
# Maintainer: Josh Hoffer < hoffer dot joshua at gmail dot com >
pkgname=dune-functions
pkgver=2.6.0
pkgrel=1
pkgdesc='Abstractions for functions and discrete function space bases'
groups=('dune')
url='https://dune-project.org/modules/dune-functions/index.html'
arch=('any')
license=('custom')
source=("git+https://gitlab.dune-project.org/staging/${pkgname}.git#tag=v${pkgver}")
makedepends=('cmake' "dune-common=${pkgver}" "dune-typetree" "dune-localfunctions" "dune-grid" 'git')
md5sums=('SKIP')

package() {
	dunecontrol --only=${pkgname} make install DESTDIR="${pkgdir}"
	install -m644 -D ${pkgname}/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	find "${pkgdir}" -type d -empty -delete
}

build() {
	CMAKE_FLAGS='-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -fPIC -DBUILD_SHARED_LIBS:BOOL=OFF' \
		                dunecontrol configure --enabled-shared
	    dunecontrol  make
    }