summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 505f2e7bba489ec542ffbaa780ab46376d936503 (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
34
35
36
37
38
39
40
41
42
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
pkgname=paml
pkgver=4.10.7
pkgrel=1
pkgdesc="Phylogenetic analysis by maximum likelihood. https://doi.org/10.1093/molbev/msm088"
arch=('x86_64')
url="http://abacus.gene.ucl.ac.uk/software/"
license=('GPL3')
depends=('glibc')
makedepends=('make')
provides=('paml')
source=("https://github.com/abacus-gene/paml/archive/refs/tags/${pkgver}.zip")
sha256sums=('0b77029516a5de4e67fa5b3c3e18fc6d5c26d6bf2556175b10dea662bad9b899')
prepare(){
	cd "$pkgname-$pkgver"/
	mkdir bin
}
build() {
	cd "$pkgname-$pkgver"/src
#	gcc -O3 -o baseml baseml.c tools.c
#	gcc -O3 -o basemlg basemlg.c tools.c
#	gcc -O3 -o codeml codeml.c tools.c
#	gcc -O3 -o pamp pamp.c tools.c
#	gcc -O3 -o mcmctree mcmctree.c tools.c
#	gcc -O3 -o evolver evolver.c tools.c
#	gcc -O3 -o yn00 yn00.c tools.c 
#	gcc -O3 -o chi2 chi2.c 
	make -f Makefile
	ls -lF
	rm *.o
	mv baseml basemlg codeml pamp evolver yn00 chi2 ../bin
}

package() {
	mkdir -p $pkgdir/usr/{bin,share/{$pkgname,licenses/$pkgname}}
	cd "$pkgname-$pkgver"
	cp bin/* $pkgdir/usr/bin
	cp -r doc/ $pkgdir/usr/share/$pkgname
	cp    LICENSE $pkgdir/usr/share/licenses/$pkgname
	cp -r Technical $pkgdir/usr/share/$pkgname
}