blob: dbbd5eb9b7847b64ba43c1f56ebaa6d2ef0f1c19 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# This is the PKGBUILD for ncbi-vdb
# Maintainer: Aaron Baker <aa{last name}99{at}gmail{dt}org>
pkgname=ncbi-vdb
pkgver=2.5.8
pkgrel=1
pkgdesc="The SRA Toolkit and SDK from NCBI is a collection of tools and libraries for using data in the INSDC Sequence Read Archives."
arch=('x86_64')
url="https://github.com/ncbi/ncbi-vdb"
depends=('libxml2' 'ngs' 'hdf5')
provides=('ncbi-vdb')
license=('custom:PublicDomain')
source=("https://github.com/ncbi/ncbi-vdb/archive/$pkgver.tar.gz")
sha256sums=('7a0ccc3434220e5288a016e4a9e24d4a1deae2a7d5de594fc94b2442172b3229')
prepare(){
cd "${pkgname}-${pkgver}"
}
build(){
cd "${pkgname}-${pkgver}"
./configure --prefix="$pkgdir/usr/"
make
}
check(){
cd "${pkgname}-${pkgver}"
make -k test
}
package(){
cd "$pkgname-$pkgver"
# ncbi does not use autoconf/automake so there is no respect for DESTDIR
# but there is a ROOT(dir)
make "ROOT=$pkgdir" install
mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib"
# the source of this package is required by others
# TODO is there somewhere to put this for namcap not to complain?
mkdir -p "$pkgdir/usr/src/${pkgname}-${pkgver}"
cp -r . "$pkgdir/usr/src/${pkgname}-${pkgver}"
# add the license
mkdir -p "$pkgdir/usr/share/licenses/${pkgname}"
cp "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
# TODO without this a link from libncbi-vdb-static.a -> libncbi-vdb.a is dead because
# libncbi-vdb.a gets removed somehow??
cd "$pkgdir/usr/lib/"
ln -sf "libncbi-vdb.a.$pkgver" libncbi-vdb-static.a
ln -sf "libncbi-wvdb.a.$pkgver" libncbi-wvdb-static.a
}
|