blob: 59117a64247ae98002fca1edd7dfb394a3c576f9 (
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
53
54
55
56
|
# Maintainer: r6eve <r6eve at acm dot org>
# Former Maintainer (thanks!) : Christopher Vittal ("viralstitch") <chris@vittal.dev>
# Former Maintainer (thanks!) : Alex Peltzer ("alexpe87") <alexpe.aur@mailbox.org>
# Former Maintainer (thanks dude!) : Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
# Contributor: Markus Heuser <markus.heuser@web.de>
pkgname=samtools
pkgver=1.21
pkgrel=1
pkgdesc="tools for manipulating next-generation sequencing data"
arch=('i686' 'x86_64')
url="http://www.htslib.org/"
license=('custom')
depends=('htslib>=1.21')
optdepends=('luajit: needed for r2plot.lua vcfutils.lua')
source=("${pkgname}-${pkgver}.tar.bz2"::"https://github.com/samtools/samtools/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('05724b083a6b6f0305fcae5243a056cc36cf826309c3cb9347a6b89ee3fc5ada')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# prevent shipped htslib to be used
rm -rf "htslib-${pkgver}" || exit 1
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--with-htslib=system
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# Install non-Perl misc/ programs
for file in misc/*.lua; do
install -Dm755 "${file}" "${pkgdir}/usr/bin/$(basename "${file}")"
done
install -d "${pkgdir}/usr/include/bam"
install -Dm644 *.h "${pkgdir}/usr/include/bam"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|