diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..962889b8ed29 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Dominik Schrempf <dominik dot schrempf at gmail dot com> +pkgname=pbmpi2-git +_gitname=pbmpi2 +pkgver=1.7.675fab8 +pkgrel=1 +pkgdesc="Efficient phylogenomic tree reconstruction using Bayesian statistics; multicore version (MPI)" +arch=(x86_64) +url="http://www.atgc-montpellier.fr/phylobayes/" +license=('GPL2') +depends=('glibc' 'openmpi') +makedepends=('git') +# Does not conflict because executable names differ. +# conflicts=('phylobayes' 'phylobayes-mpi') +source=("${pkgname}::git+https://github.com/bayesiancook/${_gitname}.git") +md5sums=('SKIP') +noextract=() + +pkgver() { + cd ${pkgname} + printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $pkgname + mkdir build + cd sources + # TODO: CONSTEXPR required to compile without '-fpermissive'. + make CPPFLAGS="-w -O3 -c -fpermissive" -j4 +} + + +package() { + cd "$srcdir/$pkgname" + # TODO: Also install other software parts. + install -D -m755 "data/pb_mpi" "${pkgdir}/usr/bin/pb_mpi" + install -D -m755 "data/readpb_mpi" "${pkgdir}/usr/bin/readpb_mpi" +} |