mpboot: init

This commit is contained in:
Kuoi 2022-08-29 20:53:39 +01:00
parent 5cfd6a1160
commit dbdcdf4efe
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# Maintainer: Guoyi Zhang <myname at malacology dot net>
pkgname=mpboot
pkgver=1.1.1
pkgrel=1
pkgdesc="Fast phylogenetic maximum parsimony tree inference and bootstrap approximation https://doi.org/10.1186/s12862-018-1131-3"
arch=(x86_64)
url="https://github.com/diepthihoang/mpboot"
license=('GPL2')
depends=('eigen' 'gcc-libs' 'zlib')
makedepends=('cmake' 'make' 'clang' 'git')
source=("git+$url.git#tag=v$pkgver")
md5sums=('SKIP')
build() {
cd $pkgname
mkdir -p build && cd build
cmake -DIQTREE_FLAGS=avx -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
make
}
package() {
cd $pkgname/build
chmod +x $pkgname-avx
install -Dm 755 $pkgname-avx ${pkgdir}/usr/bin/$pkgname
}

View file

@ -0,0 +1,12 @@
#!/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()

View file

@ -0,0 +1,9 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
update_on:
- source: github
github: diepthihoang/mpboot
use_latest_release: true
prefix: 'v'