bayestraits: init

This commit is contained in:
Kuoi 2023-10-11 18:44:31 +08:00
parent 2452005091
commit dfd920907f
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,32 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
pkgbase=bayestraits
_pkg=BayesTraits
pkgname=('bayestraits' 'bayestraits-mpi')
pkgver=4.0.1
pkgrel=0
arch=('x86_64')
pkgdesc="A computer package for performing analyses of trait evolution among groups of species \
for which a phylogeny or sample of phylogenies is available"
url="http://www.evolution.reading.ac.uk/BayesTraits.html"
license=('GPL')
makedepends=('gcc' 'nlopt' 'gsl' )
source=(http://www.evolution.reading.ac.uk/BayesTraitsV${pkgver}/Files/BayesTraitsV${pkgver}-src.tar.gz)
sha256sums=('115511f550894fcae3c731dfa7458f926e144b0046983a1ff83d22cd4c349953')
build() {
cd ${_pkg}V${pkgver}-src
gcc *.c -O3 -lm -lgsl -lgslcblas -lnlopt -o $pkgbase
gcc *.c -O3 -lm -lgsl -lgslcblas -lnlopt -DOPENMP_THR -fopenmp -o $pkgbase-mpi
}
package_bayestraits(){
depends=('nlopt' 'gsl' 'cblas' 'glibc' 'gcc-libs')
cd ${_pkg}V${pkgver}-src
install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname
}
package_bayestraits-mpi(){
depends=('nlopt' 'openmpi' 'gsl' 'cblas' 'glibc' 'gcc-libs')
cd ${_pkg}V${pkgver}-src
install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname
}

View file

@ -0,0 +1,13 @@
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
build_prefix: extra-x86_64
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_on:
- source: regex
url: "http://www.evolution.reading.ac.uk/BayesTraits.html"
regex: 'BayesTraits V([\d+.]+\d+) - Source Code'