blob: 562aad0119a1ae7e05f884b67c8db54d4070b725 (
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
|
# 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"
}
|