diff options
author | András Wacha | 2016-11-09 08:48:15 +0100 |
---|---|---|
committer | András Wacha | 2016-11-09 08:48:15 +0100 |
commit | ddd52f8ad73860e192bf30386ffbb8099a646428 (patch) | |
tree | 3a640e42de07965af317dcd38e18b8951fcd1c26 /PKGBUILD | |
download | aur-ifeffit.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..562aad0119a1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: András WACHA <awacha@gmail.com> +pkgname=ifeffit +pkgver=1.2.final +pkgrel=2 +pkgdesc="XAFS analysis program" +arch=('i686' 'x86_64') +url="http://cars9.uchicago.edu/ifeffit/" +license=('GPL') +depends=('pgplot') +makedepends=('gcc-fortran') +source=("https://github.com/newville/${pkgname}/archive/${pkgver}.tar.gz") +md5sums=('8708de3ea387cd0a47c7a1a4b5cf8e8e') + + +prepare() { + cd "$pkgname-$pkgver" +} + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr --with-pgplot=/usr/lib --with-pgplot-link="-lpgplot" + make +} + +#check() { +# cd "$pkgname-$pkgver" +# make -k check +#} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install + mv "${pkgdir}/usr/share/ifeffit/libifeffit.so" "${pkgdir}/usr/lib/" + mv "${pkgdir}/usr/bin/ifeffit" "${pkgdir}/usr/bin/ifeffit.bin" + cat >"${pkgdir}/usr/bin/ifeffit" <<EOF +#!/bin/sh + +PGPLOT_FONT=/usr/lib/grfont.dat /usr/bin/ifeffit.bin \$* +EOF + chmod +x "${pkgdir}/usr/bin/ifeffit" +} |