generax: init

This commit is contained in:
Kuoi 2022-08-29 16:47:15 +01:00
parent 4439cf2e2b
commit e6d11224a4
4 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,36 @@
pkgname=generax
_pkgname=GeneRax
pkgver=2.0.4
pkgrel=1
arch=('x86_64')
url="https://github.com/BenoitMorel/GeneRax"
pkgdescr="A Tool for Species-Tree-Aware Maximum Likelihood-Based Gene Family Tree Inference under Gene Duplication, Transfer, and Loss https://doi.org/10.1093/molbev/msaa141"
depends=('gcc-libs' 'gmp')
makedepends=('cmake' 'make' 'gcc' 'openmpi' 'bison' 'flex' 'git')
license=('AGPL')
source=("git+$url.git#tag=$pkgver"
"$pkgname.patch")
md5sums=('SKIP'
'e11bd9f6fbedfb6e47b5b4a29dde98a0')
prepare(){
cd $_pkgname
git submodule update --init --recursive
patch -p1 -i "${srcdir}/$pkgname.patch" #for 2.0.4
}
build() {
cd $_pkgname
mkdir -p build && cd build
cmake ..
make
}
package() {
cd $_pkgname
cd build/bin
for bin in $(ls)
do
install -Dm 755 $bin $pkgdir/usr/bin/$bin
done
}

View file

@ -0,0 +1,12 @@
diff --git a/src/core/IO/Model.hpp b/src/core/IO/Model.hpp
index 0eb6ce1..3a16942 100644
--- a/src/core/IO/Model.hpp
+++ b/src/core/IO/Model.hpp
@@ -6,6 +6,7 @@
#include <algorithm>
#include <unordered_map>
+#include <stdexcept>
extern "C" {
#include <pll.h>
#include <pllmod_algorithm.h>

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: BenoitMorel/GeneRax
use_latest_release: true
prefix: 'v'