summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2593efd46a9fba34615856a3b1518ac6bf0e183 (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=harminv-git
pkgver=1.4.1.r6.gf82ca9e
pkgrel=1
pkgdesc='Harmonic inversion algorithm of Mandelshtam: decompose signal into sum of decaying sinusoids'
arch=('i686' 'x86_64')
url='https://github.com/NanoComp/harminv'
license=('GPL2')
depends=('lapack')
makedepends=('gcc-fortran')
options=('!libtool')
provides=("harminv=${pkgver}")
conflicts=('harminv')
source=('git+https://github.com/NanoComp/harminv.git')
sha256sums=('SKIP')

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

build() {
	cd "${srcdir}/harminv"
	./autogen.sh --prefix=/usr --mandir=/usr/share/man --enable-shared
	make
}

package() {
	cd "${srcdir}/harminv"
	make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
}