diff options
author | clintval | 2018-03-15 17:15:10 -0700 |
---|---|---|
committer | clintval | 2018-03-15 17:15:10 -0700 |
commit | e1fecc9333c4a26f03d863939fe0fdbf45d434b7 (patch) | |
tree | 8acbe26f8e05fcdcbcbee031667180796439dbf7 | |
download | aur-wgsim-git.tar.gz |
First commit with PKGBUILD and .SRCINFO
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3bfcd33e16c8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = wgsim-git + pkgdesc = Whole genome read simulator from a reference genome + pkgver = r14.a12da33 + pkgrel = 1 + url = https://github.com/lh3/wgsim + arch = x86_64 + license = custom:Heng Li + source = wgsim::git+https://github.com/lh3/wgsim.git + sha256sums = SKIP + +pkgname = wgsim-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f5bbbecf6038 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Clint Valentine <valentine.clint@gmail.com> + +_name=wgsim +pkgname="${_name}"-git +pkgver=r14.a12da33 +pkgrel=1 +pkgdesc="Whole genome read simulator from a reference genome" +arch=('x86_64') +url=https://github.com/lh3/"${_name}" +license=('custom:Heng Li') +source=('wgsim::git+https://github.com/lh3/wgsim.git') +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}"/"${_name}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}"/"${_name}" + gcc -g -O2 -Wall -o wgsim wgsim.c -lz -lm +} + +package() { + cd "${srcdir}"/"${_name}" + install -Dm755 "${_name}" "${pkgdir}"/usr/bin/"${_name}" + install -Dm755 "${_name}"_eval.pl "${pkgdir}"/usr/bin/"${_name}"_eval.pl +} |