summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a408a3eba1da85520299d556e949bbcca51fb5fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pkgname=generax
_pkgname=GeneRax
pkgver=2.1.3
pkgrel=2
arch=('x86_64')
url="https://github.com/BenoitMorel/GeneRax"
pkgdesc="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")
md5sums=('0234c8f2728f4e1d6ec0f6afa0fb025c')

prepare(){
  cd $_pkgname
  git submodule update --init --recursive
}

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
}