summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 39bf8e7e7fdf1e6da199bd1ac24e5ef08fb6ef92 (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.0.0.r5.g8ef00d7
pkgrel=1
pkgdesc='Guile-based library implementing flexible control files for scientific simulations'
arch=('i686' 'x86_64')
url='https://github.com/stevengj/libctl'
license=('GPL2')
depends=('guile' 'gcc-fortran')
options=('!libtool')
provides=('libctl')
conflicts=('libctl')
source=('git+https://github.com/stevengj/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
}