add modeltest-ng mpi version

This commit is contained in:
Kuoi 2022-02-19 01:41:44 +00:00
parent 779fd83476
commit 81ba94bf0c
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Maintainer: Guoyi ("malcology") <guoyizhang@malacology.net>
# Contributor: Guoyi ("malcology") <guoyizhang@malacology.net>
pkgname=modeltest-ng-mpi
pkgver=0.1.7
pkgrel=5
pkgdesc="A New and Scalable Tool for the Selection of DNA and Protein Evolutionary Models. https://doi.org/10.1093/molbev/msz189"
url='https://github.com/ddarriba/modeltest'
arch=('x86_64')
depends=('openmpi')
makedepends=('bison' 'git' 'cmake' 'make' 'flex')
license=('GPL3')
source=("git+https://github.com/ddarriba/modeltest.git#tag=v${pkgver}")
sha256sums=('SKIP')
prepare(){
cd ${srcdir}/modeltest
git submodule update --init --recursive
}
build(){
cd ${srcdir}/modeltest/
mkdir build && cd build
cmake -DUSE_MPI=ON ..
make
}
package() {
install -dm755 "${pkgdir}"/usr/bin
install -Dm755 "${srcdir}/modeltest/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}

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

View file

@ -0,0 +1,8 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: github
github: ddarriba/modeltest
use_latest_release: true