blob: 3feff506a1818b25c6e530f59a42d1c99413da7d (
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
|
pkgname=kallisto
pkgver=0.51.1
pkgrel=1
pkgdesc='Quantify abundances of transcripts from RNA-Seq data'
url="http://pachterlab.github.io/$pkgname/"
license=(BSD)
arch=(i686 x86_64)
depends=(hdf5 zlib)
makedepends=(cmake autoconf automake)
source=("https://github.com/pachterlab/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('a8bcc23bca6ac758f15e30bb77e9e169e628beff2da3be2e34a53e1d42253516')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# https://github.com/pachterlab/kallisto/issues/303#issuecomment-884612169
pushd ext/htslib
sed -i '/AC_PROG_CC/a \
AC_CANONICAL_HOST \
AC_PROG_INSTALL \
' configure.ac
autoreconf -i
autoheader
autoconf
popd
# add missing header
sed -i '/#include <algorithm>/a #include <limits>' src/MinCollector.cpp
}
build() {
cd "$srcdir/$pkgname-$pkgver"
rm -rf build
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr" ..
make
}
package() {
cd "$srcdir/$pkgname-$pkgver/build"
make install
}
|