mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
generax: init
This commit is contained in:
parent
4439cf2e2b
commit
e6d11224a4
4 changed files with 69 additions and 0 deletions
36
BioArchLinux/generax/PKGBUILD
Normal file
36
BioArchLinux/generax/PKGBUILD
Normal 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
|
||||
}
|
12
BioArchLinux/generax/generax.patch
Normal file
12
BioArchLinux/generax/generax.patch
Normal 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>
|
12
BioArchLinux/generax/lilac.py
Normal file
12
BioArchLinux/generax/lilac.py
Normal 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()
|
9
BioArchLinux/generax/lilac.yaml
Normal file
9
BioArchLinux/generax/lilac.yaml
Normal 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'
|
Loading…
Add table
Reference in a new issue