From 1f0c29ffc85cc07ce7c44fa2f6b2ffe1af6c8016 Mon Sep 17 00:00:00 2001 From: Kuoi Date: Wed, 2 Nov 2022 21:21:05 +0700 Subject: [PATCH] bamm: init --- BioArchLinux/bamm/PKGBUILD | 30 ++++++++++++++++++++++++++++++ BioArchLinux/bamm/lilac.py | 11 +++++++++++ BioArchLinux/bamm/lilac.yaml | 9 +++++++++ 3 files changed, 50 insertions(+) create mode 100644 BioArchLinux/bamm/PKGBUILD create mode 100644 BioArchLinux/bamm/lilac.py create mode 100644 BioArchLinux/bamm/lilac.yaml diff --git a/BioArchLinux/bamm/PKGBUILD b/BioArchLinux/bamm/PKGBUILD new file mode 100644 index 0000000000..7aba47243a --- /dev/null +++ b/BioArchLinux/bamm/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Christian Krause ("wookietreiber") + +pkgname=bamm +pkgver=2.5.0 +pkgrel=1 +pkgdesc="A program for multimodel inference on speciation and trait evolution https://doi.org/10.1038/ncomms2958" +arch=('x86_64') +url="https://github.com/macroevolution/bamm" +license=('GPL2') +makedepends=('cmake' 'make' 'git') +source=("git+$url.git#tag=v$pkgver") +sha512sums=('SKIP') + +prepare() { + cd $srcdir/$pkgname + test -d build || mkdir build +} + +build() { + cd $srcdir/$pkgname + cd build + cmake .. + make +} + +package() { + cd $srcdir/$pkgname + cd build + install -Dm 755 $pkgname $pkgdir/usr/bin/$pkgname +} diff --git a/BioArchLinux/bamm/lilac.py b/BioArchLinux/bamm/lilac.py new file mode 100644 index 0000000000..95588104e1 --- /dev/null +++ b/BioArchLinux/bamm/lilac.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +from lilaclib import * + +def pre_build(): + update_pkgver_and_pkgrel(_G.newver.lstrip('v')) + run_cmd(['updpkgsums']) + +def post_build(): + git_add_files('PKGBUILD') + git_commit() + update_aur_repo() diff --git a/BioArchLinux/bamm/lilac.yaml b/BioArchLinux/bamm/lilac.yaml new file mode 100644 index 0000000000..69f0176591 --- /dev/null +++ b/BioArchLinux/bamm/lilac.yaml @@ -0,0 +1,9 @@ +build_prefix: extra-x86_64 +maintainers: + - github: starsareintherose + email: kuoi@bioarchlinux.org +update_on: + - source: github + github: macroevolution/bamm + use_max_tag: true + prefix: 'v'