add phylobayes

This commit is contained in:
starsareintherose 2021-08-23 01:22:37 +08:00
parent ec33d4049c
commit b29e165090
3 changed files with 50 additions and 0 deletions

32
phylobayes/PKGBUILD Normal file
View file

@ -0,0 +1,32 @@
# Maintainer: malacology
# Contributor: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>
pkgname=phylobayes
pkgver=4.1e
pkgrel=1
pkgdesc="phylogenetic reconstruction using infinite mixtures"
arch=('i686' 'x86_64')
url="https://github.com/bayesiancook/phylobayes"
license=('custom')
conflicts=('phylobayes-mpi')
depends=('gcc-libs')
source=("https://codeload.github.com/bayesiancook/phylobayes/tar.gz/refs/tags/v${pkgver}")
md5sums=('b7e915ecc83f3991142218d09aefd8c8')
build() {
cd $srcdir/${pkgname}-${pkgver}/sources
make
}
package() {
cd $srcdir/${pkgname}-${pkgver}/data
mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/licenses/$pkgname
find -mindepth 1 -maxdepth 1 -type f -printf '%P\n' | while read file ; do
cp $file $pkgdir/usr/bin
done
echo 'unknown' > $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

10
phylobayes/lilac.py Normal file
View file

@ -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()

8
phylobayes/lilac.yaml Normal file
View file

@ -0,0 +1,8 @@
build_prefix: multilib
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: github
github: bayesiancook/phylobayes
use_latest_release: true