summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5edc459cbaa3ab03133ff821f50210ac1dc39533 (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
# Maintainer: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>

pkgname=beagle-lib-cuda
_pkgname=beagle-lib
pkgver=4.0.1
pkgrel=1
pkgdesc="general purpose library for evaluating the likelihood of sequence evolution on trees (with cuda)"
arch=('i686' 'x86_64')
url="https://github.com/beagle-dev/beagle-lib"
license=('GPL3')
depends=('libtool')
optdepends=('java-enviroment')
makedepends=('cmake' 'make' 'java-environment' 'cuda-tools')
provides=('beagle-lib')
conflicts=('beagle-lib-all' 'beagle-lib-opencl' 'beagle-lib')
source=("https://github.com/beagle-dev/beagle-lib/archive/v${pkgver}.tar.gz")
sha512sums=('39476c791b0445d582f723b08bfd6d5e08a858961fce1b5240bc20687c3228e246b3c6a53dc85824a3121b2823a6fcf7b110325cac9e645014f00536755093ba')

prepare() {
  cd $srcdir/$_pkgname-$pkgver
  test -d build || mkdir build
}

build() {
  cd $srcdir/$_pkgname-$pkgver
  cd build
  export JAVA_HOME=/usr/lib/jvm/default
  export CFLAGS="-std=c11"
  cmake -DBUILD_CUDA=ON -DBUILD_OPENCL=ON -DCMAKE_INSTALL_PREFIX:PATH=$pkgdir/usr ..
}

package() {
  cd $srcdir/$_pkgname-$pkgver/build
  make install
}