blob: 03ad49576e669dba9b088631dc7b6a9f80069774 (
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
|
# Maintainer: Chan Beom Park <cbpark@gmail.com>
_pkgname=LoopTools
pkgname=looptools
pkgver=2.16
pkgrel=1
pkgdesc="package for evaluation of scalar and tensor one-loop integrals"
url="http://www.feynarts.de/looptools"
arch=('x86_64')
license=('GPL3')
depends=('gcc-fortran')
options=('staticlibs')
source=("http://www.feynarts.de/looptools/${_pkgname}-${pkgver}.tar.gz")
md5sums=('99e755a7af27cc2bc012b9541953d9ca')
prepare() {
cd "${_pkgname}-${pkgver}"
./configure --prefix=/usr CC=/usr/bin/gcc CXX=/usr/bin/g++
sed -i 's/LIBDIR = $(PREFIX)\/lib$(LIBDIRSUFFIX)/LIBDIR = $(PREFIX)\/lib/' makefile
flags=( "FFLAGS" "CFLAGS" "CXXFLAGS" )
for f in "${flags[@]}"; do
sed -i "s/$f =/$f = -fPIC/" makefile
done
}
build() {
cd "${_pkgname}-${pkgver}"
make
}
package() {
cd "${_pkgname}-${pkgver}"
make PREFIX="$pkgdir/usr" install
install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
|