aboutsummaryrefslogtreecommitdiffstats
path: root/testing/harminv/APKBUILD
blob: 3922ed5add8ff2fc9c2cf73cbab8578b2547b686 (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
41
42
43
44
45
46
47
48
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer:
pkgname=harminv
pkgver=1.4
pkgrel=1
pkgdesc="Free program to solve the problem of harmonic inversion"
url="http://ab-initio.mit.edu/wiki/index.php/Harminv"
arch="all"
license="GPL"
depends=""
depends_dev="openblas-dev"
makedepends="$depends_dev gfortran"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://ab-initio.mit.edu/harminv/harminv-$pkgver.tar.gz"

_builddir="$srcdir"/harminv-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static --enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="c3a5153bdd5ab4b160407bcd50f4843708c2f5924074fdfe88890e8770d6a874178a69e83cd615cdecce04d80a3a92133d435f7245c0a21962e1e18a14fb63f5  harminv-1.4.tar.gz"