blob: 96f80304def9896d3569cda62a599544e470c173 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
pkgname=tabixpp
pkgver=1.1.2
pkgrel=1
pkgdesc="C++ wrapper to tabix indexer"
arch=('x86_64')
url="https://github.com/ekg/tabixpp"
license=('MIT')
depends=('htslib')
makedepends=( 'make' 'gcc')
optdepends=()
source=(
"https://github.com/vcflib/tabixpp/archive/refs/tags/v${pkgver}.tar.gz"
)
md5sums=('b15f7e39476040e621ad9bb0f12fab83')
build() {
cd "$pkgname"-${pkgver}
make CC=gcc HTS_HEADERS=/usr/include/htslib HTS_LIB=/usr/lib/libhts.so PREFIX=/usr
}
package() {
cd $srcdir/"$pkgname"-${pkgver}
install -Dm 755 tabix.hpp $pkgdir/usr/include/tabix/tabix.hpp
install -Dm 755 tabix.cpp $pkgdir/usr/include/tabix/tabix.cpp
install -Dm 755 tabix++ $pkgdir/usr/bin/tabix++
install -Dm 755 libtabix.so.1 ${pkgdir}/usr/lib/libtabix.so.1
install -Dm 755 libtabix.a $pkgdir/usr/lib/libtabix.a
ln -s /usr/lib/libtabix.so.1 ${pkgdir}/usr/lib/libtabix.so
ln -s /usr/lib/libtabix.so ${pkgdir}/usr/lib/libtabixpp.so
}
|