evs: init

This commit is contained in:
Kuoi 2022-08-29 22:57:38 +01:00
parent 5979050741
commit be745522ec
2 changed files with 51 additions and 0 deletions

38
BioArchLinux/evs/PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Guoyi Zhang <myname at malacology dot net>
pkgname=evs
pkgver=20161229.215801
pkgrel=1
pkgdesc="A tool for phylogenetic biogeography"
arch=(x86_64)
url="https://github.com/js-arias/evs"
license=('BSD')
makedepends=('go')
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
}

View file

@ -0,0 +1,13 @@
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
build_prefix: extra-x86_64
pre_build_script: |
update_pkgrel()
vcs_update()
post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: js-arias/evs