summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a2795d725a2d894fea7e08c5124397f2e48535a (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
# Maintainer:  Gerasimos Chourdakis <chourdak at in dot tum dot de>
pkgname=openfoam-selector
pkgver=1.0.6
pkgrel=1
pkgdesc="A simple tool to help manage multiple installed OpenFOAM versions"
arch=('any')
url="https://develop.openfoam.com/Community/feature-scripts/"
license=('BSD')
depends=('perl')
source=("https://sourceforge.net/projects/openfoam/files/utils/${pkgname}-${pkgver}.tgz")
md5sums=('371aabdbb72fa612c2404b2bfcd39401')

build() {
    cd "${pkgname}-${pkgver}"
	./configure \
    	--prefix=/usr \
    	--localstatedir=/var \
    	--with-sysconf-dir=/etc/openfoam \
    	--with-shell-startup-dir=/etc/profile.d
    make
}

package() {
    cd "${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}/" install
    
    # install license
    install -Dm 644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}