mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
41 lines
1 KiB
Bash
41 lines
1 KiB
Bash
# Maintainer: Andrew O'Neill <andrew at meanjollies dot com>
|
|
# Contributor: Christopher Vittal ("viralstitch") <chris@vittal.dev>
|
|
|
|
pkgname=htslib
|
|
_pkgver=1.15.1
|
|
pkgver=1.15.1
|
|
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=('8d7f8bf9658226942eeab70af2a22aca618577eaa8fe2ed9416ee306d5351aa1')
|
|
|
|
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.*.*
|
|
}
|