summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13374744a7024562965b2b4365e7759b4256eda3 (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
pkgname=libcuba
pkgver=4.2.2
pkgrel=1
pkgdesc='A library for multidimensional numerical integration'
arch=('x86_64')
url="https://feynarts.de/cuba/"
license=('LGPL')
makedepends=('make' 'automake' 'gcc')
options=('staticlibs' '!lto')
source=("https://feynarts.de/cuba/Cuba-$pkgver.tar.gz")
sha256sums=('8d9f532fd2b9561da2272c156ef7be5f3960953e4519c638759f1b52fe03ed52')

build() {
  cd "$srcdir/Cuba-$pkgver"
  CFLAGS="-fPIC ${CFLAGS}" ./configure --prefix=/usr
  make -j1
}

check() {
  cd "$srcdir/Cuba-$pkgver"
  make -k check -j1
}

package() {
  cd "$srcdir/Cuba-$pkgver"
  make install -j1 DESTDIR="$pkgdir"
  rm -r "$pkgdir"/usr/bin
}