summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6866982ca36daa445da063ff4b80d52232b5e7eb (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
# Maintainer: Guoyi Zhang <myname at malacology dot net>

pkgname=evs
pkgver=20161229.215801
pkgrel=3
pkgdesc="A tool for phylogenetic biogeography"
arch=(x86_64)
url="https://github.com/js-arias/evs"
license=('BSD')
makedepends=('go' 'git')
source=("git+$url.git")
md5sums=('SKIP')

pkgver(){
  cd $srcdir/$pkgname
  printf "$(TZ=UTC git log -1 --pretty='%cd' --date=format-local:%Y%m%d.%H%M%S)"
}

prepare(){
  cd $srcdir/$pkgname
  echo "module evs" > go.mod
}


build() {
  cd $srcdir/$pkgname
for bin in biogeo cmdapp events raster tree
do
	go get github.com/js-arias/evs/$bin
done
  go build
}

package() {
  cd $srcdir/$pkgname
  chmod +x $pkgname
  install -Dm 755 $pkgname ${pkgdir}/usr/bin/$pkgname
}