summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d14274101bf7b86794985cb0300a50c95a6f8dc (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
# Maintainer: Athemis <alexander.minges[at]googlemail[dot]com>
# Contributor: sauliusl
pkgname=bowtie
pkgver=1.1.2
pkgrel=1
pkgdesc="Bowtie is an alignment tool for short nucleotide sequences against long templates"
url="http://bowtie-bio.sf.net"
arch=('x86_64' 'i686')
license=('PerlArtistic')
depends=()
source=("http://downloads.sourceforge.net/bowtie-bio/${pkgname}-${pkgver}-src.zip"
        "makefile_uname.patch")
sha256sums=('b1e9ccc825207efd1893d9e33244c681bcb89b9b2b811eb95a9f5a92eab637ae'
            '6b77e333a3ef10e3f787fd2983afd69cdb48e82347fc3316510c2ba5639742a3')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np0 -i ../makefile_uname.patch
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -d ${pkgdir}/usr/bin
  install -d ${pkgdir}/usr/share/doc/${pkgname}
  install -Dm755 bowtie ${pkgdir}/usr/bin
  install -Dm755 bowtie-build* ${pkgdir}/usr/bin
  install -Dm755 bowtie-inspect* ${pkgdir}/usr/bin
  install -Dm755 bowtie-align* ${pkgdir}/usr/bin
  install -Dm755 scripts/* ${pkgdir}/usr/bin
  install -Dm644 doc/* ${pkgdir}/usr/share/doc/${pkgname}
  install -Dm644 TUTORIAL "${pkgdir}/usr/share/doc/${pkgname}/TUTORIAL"
  install -Dm644 MANUAL "$pkgdir/usr/share/doc/$pkgname/MANUAL"
  install -Dm644 MANUAL.markdown "$pkgdir/usr/share/doc/$pkgname/MANUAL.markdown"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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