From b29e165090e6dec355d6a11171316a04eb2515ed Mon Sep 17 00:00:00 2001 From: starsareintherose Date: Mon, 23 Aug 2021 01:22:37 +0800 Subject: [PATCH] add phylobayes --- phylobayes/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ phylobayes/lilac.py | 10 ++++++++++ phylobayes/lilac.yaml | 8 ++++++++ 3 files changed, 50 insertions(+) create mode 100644 phylobayes/PKGBUILD create mode 100644 phylobayes/lilac.py create mode 100644 phylobayes/lilac.yaml diff --git a/phylobayes/PKGBUILD b/phylobayes/PKGBUILD new file mode 100644 index 0000000000..531422d9f0 --- /dev/null +++ b/phylobayes/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: malacology +# Contributor: Christian Krause ("wookietreiber") + +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 +} diff --git a/phylobayes/lilac.py b/phylobayes/lilac.py new file mode 100644 index 0000000000..8c66f58ed6 --- /dev/null +++ b/phylobayes/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/phylobayes/lilac.yaml b/phylobayes/lilac.yaml new file mode 100644 index 0000000000..705edda98a --- /dev/null +++ b/phylobayes/lilac.yaml @@ -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