summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53a4c8af1748585729c74b22adf1bcf9683abb3d (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
# Maintainer: Grey Christoforo <first name @ last name .net>

pkgname=cufflinks-git
pkgver=v2.2.1.r83.gb4fa050
pkgrel=1
pkgdesc="Cufflinks assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.."
arch=("x86_64")
url="http://cole-trapnell-lab.github.io/projects/cufflinks/"
license=('Artistic')
depends=('boost' 'eigen3' 'python2' 'samtools' 'perl')
source=('git+https://github.com/cole-trapnell-lab/cufflinks.git')
md5sums=('SKIP')

pkgver() {
  cd cufflinks
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd cufflinks

  sed -i 's,hash\[pos\]\.hash,(hash[pos].hash),g' src/GHash.hh

  
 
  ./autogen.sh
  # cufflinks uses python2 but archlinux uses python3 as default python
  perl -i -pne '$_ =~ s/python/python2/ if $_ =~ /^#!\/usr/' src/cuffmerge

  export EIGEN_CPPFLAGS="-I/usr/include/eigen3"
  export LDFLAGS="-L/usr/lib -lboost_system"
  ./configure --prefix=/usr
}

build() {
  cd cufflinks
  export EIGEN_CPPFLAGS="-I/usr/include/eigen3"
  export LDFLAGS="-L/usr/lib -lboost_system"
  make
}

package(){
  cd cufflinks
  make DESTDIR="$pkgdir/" install
}