diff options
author | Chocobo1 | 2020-09-01 14:28:32 +0800 |
---|---|---|
committer | Chocobo1 | 2020-09-01 14:34:18 +0800 |
commit | 9f8601a199faa77a2ce1e552f86979e6c77ed015 (patch) | |
tree | 76a88409f021a2f26018e1414ea1d47bcceb2f05 /PKGBUILD | |
download | aur-9f8601a199faa77a2ce1e552f86979e6c77ed015.tar.gz |
newpkg: htslib-git 1.10.2.r134.ge9447f86-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f0e767734688 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=htslib-git +pkgver=1.10.2.r134.ge9447f86 +pkgrel=1 +pkgdesc="C library for high-throughput sequencing data formats" +arch=('i686' 'x86_64') +url="https://github.com/samtools/htslib" +license=('custom') +depends=('glibc' 'bzip2' 'curl') +makedepends=('git') +provides=('htslib') +conflicts=('htslib') +options=('staticlibs') +source=("git+https://github.com/samtools/htslib.git") +sha256sums=('SKIP') + + +pkgver() { + cd "htslib" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "htslib" + + autoreconf -fi + ./configure \ + --prefix="/usr" \ + --enable-plugins \ + --with-plugin-dir="/usr/lib/htslib/plugins" + make +} + +check() { + cd "htslib" + + #make check +} + +package() { + cd "htslib" + + make DESTDIR="$pkgdir" install + install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/htslib" +} |