summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD28
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3bfcd33e16c
--- /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 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
+}