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

pkgname=beagle-lib-all
_pkgname=beagle-lib
pkgver=4.0.1
pkgrel=1
pkgdesc="general purpose library for evaluating the likelihood of sequence evolution on trees (with cuda and opencl)"
arch=('i686' 'x86_64')
url="https://github.com/beagle-dev/beagle-lib"
license=('GPL3')
depends=('libtool' 'opencl-headers')
makedepends=('cmake' 'make' 'java-environment' 'cuda-tools' 'ocl-icd')
provides=('beagle-lib')
conflicts=('beagle-lib' 'beagle-lib-opencl' 'beagle-lib-cuda')
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
}