summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a17205c664bebe88a9c71d9f89922e4e00f76f9e (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: Josh Marshall <jrmarsha@mtu.edu>

pkgname=superfamily
pkgver=1.75
pkgrel=1
pkgdesc=''
arch=('any')
license=('custom')
url='http://supfam.org'
depends=('hmmer')
makedepends=('bash')
provides=()
path="/SUPERFAMILY/downloads"
source=(
        "$url$path/downloads.tar.gz"
)

sha512sums=(
'2c2bad94a3855d0f529c5747fa269d9b7454f64e923085e05fadbb979a54ef72da617c4157f58971c16f1997a4c94d7b5729faec1840d8e51f81a7ba783bd1ae'
)

package() {
  mkdir -p "$pkgdir/opt/$pkgname/"
  mkdir -p "$pkgdir/usr/bin/"

  install -Dm644 license/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  ls                 | egrep -v '.+\.gz|.+\.tgz|LICENSE|archive|SUPERFAMILY|scripts' | while read -r fileName ; do
    cp -rfLH "$fileName" "$pkgdir/opt/$pkgname/"
  done

  ls license         | egrep -v '.+\.gz|.+\.tgz|LICENSE|archive|SUPERFAMILY|scripts' | while read -r fileName ; do
    cp -rfLH "license/$fileName" "$pkgdir/opt/$pkgname/"
  done

  ls license/scripts | egrep -v '.+\.gz|.+\.tgz|LICENSE|archive|SUPERFAMILY|scripts' | while read -r fileName ; do
    cp -rfLH "license/scripts/$fileName" "$pkgdir/usr/bin/"
  done

}