blob: 92cd0937ed38f9fd90fa3ee9c443a142ac01b13f (
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: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>
pkgname=tophat
pkgver=2.0.14
pkgrel=1
pkgdesc="fast splice junction mapper for RNA-Seq reads"
arch=('x86_64' 'i686')
url="http://ccb.jhu.edu/software/tophat/index.shtml"
license=('PerlArtistic')
depends=('boost-libs' 'bowtie2' 'python2')
makedepends=('boost' 'clang')
source=("http://ccb.jhu.edu/software/tophat/downloads/tophat-$pkgver.tar.gz")
md5sums=('509f72082c98f116131e976681578a9f')
prepare() {
cd $srcdir/$pkgname-$pkgver
sed -e 's|-Wall -Wno-strict-aliasing -g -gdwarf-2 -Wuninitialized||' \
-e '/define.*esyscmd/d' \
-e 's/svnversion/Unversioned directory/' \
-i configure.ac
sed -e 's|make $(SAMPROG)|make -e $(SAMPROG)|' \
-i src/Makefile.am
sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
-i src/bed_to_juncs \
src/contig_to_chr_coords \
src/sra_to_solid \
src/tophat.py \
src/tophat-fusion-post
autoreconf -fi
}
build() {
cd $srcdir/$pkgname-$pkgver
export CC=clang
export CXX=clang++
export PYTHON=python2
./configure --prefix=/usr
# do not link against system-installed libbam.a
sed -e 's|-L/usr/lib||' \
-i Makefile src/Makefile
make -j1
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
}
|