summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af2c38d855fa8bc40a3943cd53862336af2844d2 (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
43
44
# Maintainer: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>

pkgname=phyml-git
pkgver=r121.ab59039
pkgrel=1
pkgdesc="Phylogenetic estimation using (Maximum) Likelihood"
arch=('i686' 'x86_64')
url="https://github.com/stephaneguindon/phyml/"
license=('GPL2')
depends=('glibc')
conflicts=('phyml')
provides=('phyml')

source=("$pkgname::git+https://github.com/stephaneguindon/phyml")

md5sums=('SKIP')

pkgver() {
  cd $srcdir/$pkgname

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $srcdir/$pkgname

  autoreconf -fi
}

build() {
  cd $srcdir/$pkgname

  ./configure \
    --prefix=/usr \
    --disable-static

  make
}

package() {
  cd $srcdir/$pkgname

  make DESTDIR=$pkgdir install
}