summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4da07c1cc6abe906683aeb57ed5a89b58c3b44a (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
# Maintainer: Sauliusl <luksaulius[at]gmail[dot]com>
pkgname=pash-mapper
pkgver=3.01.02
pkgrel=1
pkgdesc="A versatile software package for read mapping and integrative analysis of genomic and epigenomic variation using massively parallel DNA sequencing"
url="http://www.biomedcentral.com/1471-2105/11/572"
arch=('x86_64' 'i686')
license=('custom')
depends=()
optdepends=('ruby: necessary to run lffMerger.rb, pashToLff.rb, and buildFastaIndex.rb')
makedepends=('poppler')
conflicts=()
replaces=()
backup=()
install=''
source=("pash-${pkgver}.tgz") # Obtain the software from http://www.brl.bcm.tmc.edu/pash/pashDownload.rhtml
sha1sums=('39442bdf2d5f00a5dda88898b99d33c2bf3a7127')

build() {
  cd "pash-${pkgver}/"
  pdftotext doc/Pash3_license.pdf ../LICENSE
  cd src/
  sed -i s/g++-4.8/g++/ Makefile.include
  sed -i s/gcc-4.8/gcc/ Makefile.include
  sed -i s/-Wl,-Bstatic// Makefile.include
  make
}
package() {
  install -d ${pkgdir}/usr/share/licenses/${pkgname}/
  install -Dm0644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

  cd "pash-${pkgver}"
  install -d "${pkgdir}/usr/bin"
  install -Dm0755 src/pash/pash3 ${pkgdir}/usr/bin/pash3
  install -Dm0755 src/util/pash3_keyFreq ${pkgdir}/usr/bin/pash3_keyFreq
  install -Dm0755 src/util/pash3_makeIgnoreList ${pkgdir}/usr/bin/pash3_makeIgnoreList

  install -Dm0755 bin/pash3_getRCChrom.rb ${pkgdir}/usr/bin/pash3_getRCChrom.rb
  install -Dm0755 bin/pash3_splitFastq.rb ${pkgdir}/usr/bin/pash3_splitFastq.rb
}

# vim:set ts=2 sw=2 et: