diff --git a/BioArchLinux/mosdepth/PKGBUILD b/BioArchLinux/mosdepth/PKGBUILD new file mode 100644 index 0000000000..62501ea2ef --- /dev/null +++ b/BioArchLinux/mosdepth/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Andrew O'Neill +# Contributor: Clint Valentine + +pkgname=mosdepth +pkgver=0.3.3 +pkgrel=1 +pkgdesc='Fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing' +arch=('x86_64') +url="https://github.com/brentp/${pkgname}" +license=('MIT') +makedepends=('nim' 'htslib') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('71edbefef8e3a43ddf41f79e24f4a11eb208e6fc0957e4431294a5e9517a3c14') + +build() { + cd "${pkgname}-${pkgver}" + + nimble build -y +} + +package() { + cd "${pkgname}-${pkgver}" + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" +} diff --git a/BioArchLinux/mosdepth/lilac.py b/BioArchLinux/mosdepth/lilac.py new file mode 100644 index 0000000000..8a6e65aeba --- /dev/null +++ b/BioArchLinux/mosdepth/lilac.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 + +from lilaclib import * + +def pre_build(): + update_pkgver_and_pkgrel(_G.newver.lstrip('v')) + run_cmd(['updpkgsums']) + +def post_build(): + git_add_files('PKGBUILD') + git_commit() diff --git a/BioArchLinux/mosdepth/lilac.yaml b/BioArchLinux/mosdepth/lilac.yaml new file mode 100644 index 0000000000..b4ced15016 --- /dev/null +++ b/BioArchLinux/mosdepth/lilac.yaml @@ -0,0 +1,14 @@ +build_prefix: extra-x86_64 +maintainers: + - github: starsareintherose + email: kuoi@bioarchlinux.org +update_on: + - source: github + github: brentp/mosdepth + use_max_tag: true + prefix: 'v' + - alias: alpm-lilac + alpm: htslib + strip_release: true +repo_depends: + - htslib