summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d941b95ebab99ca45da8d2ef0e9a65fc2ebe392 (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
46
# Maintainer: Andrew Sun <adsun701@gmail.com>
# Contributor: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>

pkgname=idba
pkgver=1.1.3
pkgrel=1
pkgdesc="iterative de Bruijn graph assembler"
arch=('i686' 'x86_64')
url="http://i.cs.hku.hk/~alse/hkubrg/projects/idba_ud/"
license=('GPL2')
depends=('gcc-libs')
checkdepends=('python2')
source=("https://github.com/loneknightpy/idba/releases/download/$pkgver/idba-$pkgver.tar.gz")
sha256sums=('030e24463c6d725c1c202baabf773b605b51e310844fd0f27f4688ecfbae26d0')

prepare() {
  cd $srcdir/$pkgname-$pkgver

  sed -e 's|#! /usr/bin/python|#!/usr/bin/env python2|' \
      -i script/run-unittest.py \
         script/scan.py
}

build() {
  cd $srcdir/$pkgname-$pkgver

  ./configure --prefix=/usr

  make
}

check() {
  cd $srcdir/$pkgname-$pkgver

  make unittest
}

package() {
  cd $srcdir/$pkgname-$pkgver

  for i in $(find bin -type f | xargs file | awk -F: '/ELF/ { print $1 }' | grep -vE '\.o$') ; do
    install -Dm755 $i $pkgdir/usr/bin/$(basename $i)
  done

  mv $pkgdir/usr/bin/{,idba_}test
}