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

_name=mosdepth
pkgname=mosdepth-bin
pkgver=0.2.3
pkgrel=1
pkgdesc="Fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing"
arch=('any')
url="https://github.com/brentp/mosdepth"
license=('MIT')
provides=('mosdepth')
conflicts=('mosdepth')
source=(
    https://github.com/brentp/"${_name}"/releases/download/v"${pkgver}"/"${_name}"
    "${_name}"-"${pkgver}".tar.gz::https://github.com/brentp/"${_name}"/archive/v"${pkgver}".tar.gz)
sha256sums=('0aaeb283b296e5ee0a2d819b4842b92289145ed17a37210144f0e02edd3629c4'
            'a05b3ef3c779c2155816954322adca2d7c06b3e19a409993020b9ad4bbd28dd4')

package() {
  install -Dm755 "${_name}" "${pkgdir}"/usr/bin/"${_name}"

  # Complete tar archive downloaded just for current license.
  cd "${srcdir}"/"${_name}"-"${pkgver}"
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${_name}"/LICENSE
}