summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdcae7b6a9b47ae8d69f9e993b2ed662adc21172 (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
42
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>

pkgname=liboakleaf
pkgver=0.0.1
pkgrel=3
pkgdesc="Library which implements robust statistical estimates"
arch=(x86_64)
url="http://integral.physics.muni.cz/oakleaf"
license=(LGPL-3.0-only)
depends=(
  gcc-libs
  glibc
  libminpack
)
makedepends=(gcc-fortran)

source=("ftp://integral.physics.muni.cz/pub/oakleaf/oakleaf-$pkgver.tar.gz")
sha256sums=('2bda78abeb483a48adfac6955aa73232a86f678549c2a84df8b7f05f314757c6')

_archive="oakleaf-$pkgver"

build() {
  cd "$_archive"

  ./configure --prefix=/usr --libexecdir=/usr/lib

  # Parallel compilation fails
  MAKEFLAGS="-j1" make
}

check() {
  cd "$_archive"

  # Parallel compilation fails
  MAKEFLAGS="-j1" make -k check
}

package() {
  cd "$_archive"

  make DESTDIR="$pkgdir/" install
}