summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3945dbf08ff3842fb67d366594f51b15655f92c1 (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
# Maintainer : Michael Schubert <mschu.dev at gmail>
# Contributor: yescalona <yescalona[at]ug[dot]uchile[dot]cl>
# Contributor : soeren <nonick[at]posteo[dot]de>

pkgname='blast+-bin'
pkgver=2.2.31
pkgrel=2
pkgdesc="New suite of BLAST tools that utilizes the NCBI C++ Toolkit"
arch=('i686' 'x86_64')
url="http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&PAGE_TYPE=BlastHome"
license=('custom')
depends=('perl' 'zlib')
provides=('blast+')
conflicts=('blast+')
PKGEXT='.pkg.tar'

_arch=$CARCH
[[ $CARCH == i686 ]] && _arch="ia32"
[[ $CARCH == x86_64 ]] && _arch="x64"
source=("ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/$pkgver/ncbi-blast-$pkgver+-$_arch-linux.tar.gz")
[[ $CARCH == i686 ]] && md5sums=('f1bf36a6c2a50c3698404290e4be6e3b')
[[ $CARCH == x86_64 ]] && md5sums=('ae789a5bfb523cef95ac40e5a6b1929e')

package() {
  install -d "$pkgdir"/usr/bin
  install -d "$pkgdir"/usr/share/doc/$pkgname

  cd "$srcdir"/ncbi-blast-$pkgver+
  install -Dm755 bin/* "$pkgdir"/usr/bin
  install -Dm644 doc/* "$pkgdir"/usr/share/doc/$pkgname
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/blast+-bin/LICENSE
}