summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1c260c1db71133c2511c43779d1747215238355 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash

# Maintainer: PumpkinCheshire <me at pumpkincheshire dot top>

pkgname=spades
_name=SPAdes
pkgver=3.15.4
pkgrel=1
pkgdesc='St. Petersburg genome assembler – is an assembly toolkit containing various assembly pipelines.'
url='http://cab.spbu.ru/software/spades/'
arch=('x86_64')
license=('unknown')
depends=('python')
makedepends=(
    'gcc'
    'cmake'
    'zlib'
    'bzip2'
    'bash'
)
provides=('spades')
conflicts=(
    'spades-bin'
    'spades-git'
)
source=(
    "http://cab.spbu.ru/files/release$pkgver/$_name-$pkgver.tar.gz"
    'spades'
)
b2sums=('fcb25f929e05e2ab9dd828d138b8404ae29340ab88e29aa40907405c2fa280520dfbe26ba959523e9ba826c909d8dbfdeba53fcbaab9845ac0b62dd7e079858d'
        'bb76a52fbf7b1b8b4323e1833b237f4bcdad1c3ec16926f7147ffacb52302be9ca438fdf25026d73a2f29082b041cdc0bae69b6f62d752a696238165fe01d3ac')

prepare() {
    cd "$srcdir/$_name-$pkgver/" || exit
    mkdir -p bin
}

build() {
    cd "$srcdir/$_name-$pkgver/" || exit

    ./spades_compile.sh
}

check() {
    cd "$srcdir/$_name-$pkgver/bin/" || exit

    python spades.py --test
}

package() {
    cd "$srcdir/$_name-$pkgver/" || exit

    install -Dm755 "$srcdir/$pkgname" "$pkgdir'/usr/bin/$pkgname"

    mkdir -p "$pkgdir/usr/share/$pkgname/"

    cp -R 'bin' "$pkgdir/usr/share/$pkgname/"
    chmod -R 755 "$pkgdir/usr/share/$pkgname/bin"

    cp -R 'share' "$pkgdir/usr/share/$pkgname/"
    chmod -R 755 "$pkgdir/usr/share/$pkgname/share"

}