summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b9ae87216caa8270a519d64ce3a2bb8a5bebd89 (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
# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com>
pkgname=libctl-git
pkgver=4.5.1.r1.g069e736
pkgrel=1
pkgdesc='Guile-based library implementing flexible control files for scientific simulations'
arch=('i686' 'x86_64')
url='https://github.com/NanoComp/libctl'
license=('GPL2')
depends=('guile' 'gcc-fortran')
options=('!libtool')
provides=("libctl=${pkgver}")
conflicts=('libctl')
source=('git+https://github.com/NanoComp/libctl.git')
sha256sums=('SKIP')

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

build() {
	cd "${srcdir}/libctl"
	sed -i '/unknown argument/d' autogen.sh
	./autogen.sh LIBS='-lm' --prefix=/usr --enable-shared
	make
}

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