summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a206320692f761bc0f947b9c2be0ba439707493 (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
# Maintainer: Steffen Weber <-boenki-gmx-de->
# Contributor: Mick Elliot <micke at sfu dot ca>

pkgname=mafft
pkgver=7.394
pkgrel=1
pkgdesc="Multiple alignment program for amino acid or nucleotide sequences"
arch=('i686' 'x86_64')
url="https://mafft.cbrc.jp/alignment/software/"
license=('custom')
depends=('ruby')
options=('!makeflags')
source=($url/$pkgname-$pkgver-with-extensions-src.tgz)
md5sums=('30eaa8815c3917ef8c533f543184d3ab')

build() {
  cd $pkgname-$pkgver-with-extensions/core
  make clean
  make PREFIX=/usr LIBDIR=/usr/lib/mafft

  cd ../extensions
  make clean
  make PREFIX=/usr LIBDIR=/usr/lib/mafft
}

package() {
  cd $pkgname-$pkgver-with-extensions/core
  make PREFIX=$pkgdir/usr LIBDIR=$pkgdir/usr/lib/mafft install

  cd ../extensions
  make PREFIX=$pkgdir/usr LIBDIR=$pkgdir/usr/lib/mafft install

  install -d $pkgdir/usr/share/licenses/mafft/
  install -m644 ../license* $pkgdir/usr/share/licenses/mafft/

  rm $pkgdir/usr/lib/mafft/*.1

  ln -sf /usr/lib/mafft/mafft-profile $pkgdir/usr/bin
  ln -sf /usr/lib/mafft/mafft-distance $pkgdir/usr/bin
}