summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5422c568938da581c9a8e6468d4cd829df3e0b6 (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
# Maintainer: Clint Valentine <valentine.clint@gmail.com>

_name=dwgsim
pkgname="${_name}"-git
pkgver=r159.39a1bbb
pkgrel=2
pkgdesc="Whole genome read simulator for Next-Generation Sequencing data"
arch=('x86_64')
url=https://github.com/lh3/"${_name}"
license=('GPL2')
conflicts=('dwgsim')
provides=('dwgsim')
source=('dwgsim::git+https://github.com/nh13/DWGSIM.git')
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}"/"${_name}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${srcdir}"/"${_name}"
  git submodule init
  git submodule update
}

build() {
  cd "${srcdir}"/"${_name}"
  make
}

package() {
  cd "${srcdir}"/"${_name}"
  install -Dm644 LICENSE "${pkgdir}"/usr/share/doc/"${_name}"/LICENSE
  install -Dm755 "${_name}" "${pkgdir}"/usr/sbin/"${_name}"
}