# Maintainer: Andrew O'Neill # Contributor: Christopher Vittal ("viralstitch") pkgname=htslib pkgver=1.17 pkgrel=1 pkgdesc='A C library for high-throughput sequencing data formats' arch=('x86_64') url="https://github.com/samtools/${pkgname}" license=('custom') depends=('bzip2' 'curl' 'xz') provides=('tabix') replaces=('tabix') conflicts=('tabix') options=('staticlibs') source=("${pkgname}-${pkgver}.tar.bz2::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2") sha256sums=('763779288c40f07646ec7ad98b96c378c739171d162ad98398868783b721839f') build() { cd "${pkgname}-${pkgver}" ./configure \ --prefix=/usr \ --enable-libcurl \ --enable-plugins \ --with-plugin-dir=/usr/lib/htslib/plugins make } package() { cd "${pkgname}-${pkgver}" make DESTDIR=${pkgdir} install install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # htslib shared library comes installed as 0644 chmod +x ${pkgdir}/usr/lib/libhts.so.*.* }