mosdepth: init

This commit is contained in:
Kuoi 2022-08-28 15:18:04 +01:00
parent f1782c8002
commit 4f8f37c09f
3 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,27 @@
# Maintainer: Andrew O'Neill <andrew at meanjollies dot com>
# Contributor: Clint Valentine <valentine.clint@gmail.com>
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}"
}

View file

@ -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()

View file

@ -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