summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4cfd21ad57494cb2870906d1606e1fab2701a0ee (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
# Maintainer: Michael Schubert <mschu.dev at gmail>
pkgname=libdai
pkgver=0.3.2
pkgrel=2
pkgdesc="Implementations of approximate inference methods for discrete graphical models"
arch=('i686' 'x86_64')
url="https://staff.fnwi.uva.nl/j.m.mooij/libDAI"
license=('GPL')
depends=('boost-libs' 'gmp')
optdepends=('doxygen' 'graphviz')
source=("https://staff.fnwi.uva.nl/j.m.mooij/libDAI/libDAI-0.3.2.tar.gz")
md5sums=('fc540e0381339dcb3d8abdac80fe9a40')

build() {
  cd "$srcdir/libDAI-$pkgver"

  cp Makefile.LINUX Makefile.conf
  sed -i "/TARGETS:=/s| tests | |" Makefile
  sed -i "/unittests testregression testem/d" Makefile

  make BOOSTLIBS_PO=-lboost_program_options BOOSTLIBS_UTF=-lboost_unit_test_framework
}

package() {
  cd "$srcdir/libDAI-$pkgver"
  install -Dm755 lib/libdai.a "$pkgdir/usr/lib/libdai.a"

  for FILE in $(find include -type f); do
    install -Dm644 $FILE "$pkgdir/usr/$FILE"
  done
}