summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00e825cd281c5fd4de6f43edcaf6ead1d5f9365d (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
pkgname=vinecopulib
pkgver=0.2.5
pkgrel=1
pkgdesc="A C++ vine copula library"
license=('MIT')
arch=('i686' 'x86_64')
url="https://github.com/vinecopulib/vinecopulib"
depends=('gcc-libs')
makedepends=('cmake' 'eigen' 'boost')
source=("https://github.com/vinecopulib/vinecopulib/archive/v${pkgver}.tar.gz")
sha256sums=('f9b9b66b2fc73214d6ab0db37bf226601c9de85c4d318248247a2931a0df08ec')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  mkdir -p build && pushd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DVINECOPULIB_SHARED_LIB=ON ..
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver/build"
  make DESTDIR="$pkgdir" install
}