summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorclintval2018-03-15 17:15:10 -0700
committerclintval2018-03-15 17:15:10 -0700
commite1fecc9333c4a26f03d863939fe0fdbf45d434b7 (patch)
tree8acbe26f8e05fcdcbcbee031667180796439dbf7 /PKGBUILD
downloadaur-wgsim-git.tar.gz
First commit with PKGBUILD and .SRCINFO
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f5bbbecf603
--- /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
+}