diff --git a/mrbayes-mpi/PKGBUILD b/mrbayes-mpi/PKGBUILD new file mode 100644 index 0000000000..3d8338c581 --- /dev/null +++ b/mrbayes-mpi/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Guoyi ("malacology") +# Contributor: Guoyi ("malacology") +# Contributor: Christian Krause ("wookietreiber") + +pkgname=mrbayes-mpi +pkgver=3.2.7 +pkgrel=2 +pkgdesc="MrBayes is a program for Bayesian inference and model choice across a wide range of phylogenetic and evolutionary models" +arch=('i686' 'x86_64') +url="nbisweden.github.io/mrbayes/" +license=('GPL3') +depends=('openmpi' 'readline''gcc') +optdepends=('beagle-lib: for using GPU calculations among other enhancements - rebuild package after installing this dep') +conflicts=(mrbayes) +provides=(mrbayes) +source=("https://github.com/NBISweden/MrBayes/archive/v${pkgver}.tar.gz") +sha256sums=('64da39c01f606d0413ce90a1dd3c1ce2cbdef4cbad99aee8a4b2391a2e8db244') + +build() { + cd ${srcdir}/MrBayes-$pkgver + #Build with beagle-lib support if available: + if [ -f /usr/lib/libhmsbeagle.so ] + then + msg "beagle-lib found! Building with CUDA support." + ./configure --with-beagle=/usr --prefix=${pkgdir}/usr --enable-mpi=yes + else + msg "beagle-lib not found! Building without CUDA support." + ./configure --with-beagle=no --prefix=${pkgdir}/usr --enable-mpi=yes + fi + make +} +package() { + cd ${srcdir}/MrBayes-$pkgver + make install + install ${pkgdir}/usr/bin/mb ${pkgdir}/usr/bin/mb-mpi +} diff --git a/mrbayes-mpi/lilac.py b/mrbayes-mpi/lilac.py new file mode 100644 index 0000000000..8c66f58ed6 --- /dev/null +++ b/mrbayes-mpi/lilac.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 + +from lilaclib import * + +def pre_build(): + update_pkgver_and_pkgrel(_G.newver.lstrip('v')) + +def post_build(): + git_add_files('PKGBUILD') + git_commit() diff --git a/mrbayes-mpi/lilac.yaml b/mrbayes-mpi/lilac.yaml new file mode 100644 index 0000000000..e0087b5b00 --- /dev/null +++ b/mrbayes-mpi/lilac.yaml @@ -0,0 +1,8 @@ +build_prefix: extra-x86_64 +maintainers: + - github: starsareintherose + email: starsareintherose@outlook.com +update_on: + - source: github + github: NBISweden/MrBayes + use_latest_release: true diff --git a/mrbayes/PKGBUILD b/mrbayes/PKGBUILD index 468a153eb0..6b4ef8a0f0 100644 --- a/mrbayes/PKGBUILD +++ b/mrbayes/PKGBUILD @@ -9,7 +9,7 @@ pkgdesc="A program for the Bayesian estimation of phylogeny" arch=('i686' 'x86_64') license=('GPL') url="http://nbisweden.github.io/MrBayes/" -depends=('readline') +depends=('readline' 'gcc') optdepends=('beagle-lib: for using GPU calculations among other enhancements - rebuild package after installing this dep') source=(https://github.com/NBISweden/MrBayes/archive/v${pkgver}.tar.gz) sha256sums=('64da39c01f606d0413ce90a1dd3c1ce2cbdef4cbad99aee8a4b2391a2e8db244') diff --git a/mrbayes/lilac.yaml b/mrbayes/lilac.yaml index e0087b5b00..f00dbcbdca 100644 --- a/mrbayes/lilac.yaml +++ b/mrbayes/lilac.yaml @@ -1,4 +1,4 @@ -build_prefix: extra-x86_64 +build_prefix: multilib maintainers: - github: starsareintherose email: starsareintherose@outlook.com