From 81ba94bf0cee66cc7bc74a3a0f65db25a451a1a9 Mon Sep 17 00:00:00 2001 From: Kuoi Date: Sat, 19 Feb 2022 01:41:44 +0000 Subject: [PATCH] add modeltest-ng mpi version --- BioArchLinux/modeltest-ng-mpi/PKGBUILD | 29 ++++++++++++++++++++++++ BioArchLinux/modeltest-ng-mpi/lilac.py | 10 ++++++++ BioArchLinux/modeltest-ng-mpi/lilac.yaml | 8 +++++++ 3 files changed, 47 insertions(+) create mode 100644 BioArchLinux/modeltest-ng-mpi/PKGBUILD create mode 100644 BioArchLinux/modeltest-ng-mpi/lilac.py create mode 100644 BioArchLinux/modeltest-ng-mpi/lilac.yaml diff --git a/BioArchLinux/modeltest-ng-mpi/PKGBUILD b/BioArchLinux/modeltest-ng-mpi/PKGBUILD new file mode 100644 index 0000000000..df917cd047 --- /dev/null +++ b/BioArchLinux/modeltest-ng-mpi/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Guoyi ("malcology") +# Contributor: Guoyi ("malcology") + +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}" +} diff --git a/BioArchLinux/modeltest-ng-mpi/lilac.py b/BioArchLinux/modeltest-ng-mpi/lilac.py new file mode 100644 index 0000000000..8c66f58ed6 --- /dev/null +++ b/BioArchLinux/modeltest-ng-mpi/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/BioArchLinux/modeltest-ng-mpi/lilac.yaml b/BioArchLinux/modeltest-ng-mpi/lilac.yaml new file mode 100644 index 0000000000..d9083a3ceb --- /dev/null +++ b/BioArchLinux/modeltest-ng-mpi/lilac.yaml @@ -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