summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abedfd4211582d249e46c57f1b4e583e3ecaadef (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
# Maintainer: Pieter Goetschalckx

pkgname=cage-graph
pkgver=2016.02.23
pkgrel=1
pkgdesc='The Chemical & abstract Graph environment.'
arch=(x86_64)
url=https://caagt.ugent.be/CaGe
license=(unknown)
depends=(jdk8-openjdk)
source=(
  https://github.com/CaGe-graph/CaGe/releases/download/${pkgver//./-}/CaGe.zip
  ${pkgname}.patch
  ${pkgname}.desktop
  ${pkgname}
)
sha256sums=('42dd2f67d44826849426f347d0bc8fdbac4e194881d62c9cab36bb66964c27b8'
            '95a026eb3df6b9ddacbe0869473d9f3eba163d5db7091e5c3dd25d40d6bf817e'
            'cb161b27d20728851f697851be87cea4f37e5711241a4367569ee8bfae40c0a5'
            '2abd0e5128c265421d4563466eceedc5f475b5a9ee0ae8c2e947c73f21aa3fa3')

prepare() {
  patch -p1 -i ${pkgname}.patch
}

build() {
  export CFLAGS="-fcommon"
  sh INSTALL.sh
}

package() {
  install -Dm644 cage.sh CaGe.ini java javadir .rasmolrc *.jar -t ${pkgdir}/usr/lib/cage-graph/
  cp -r Generators img Native PreCompute ${pkgdir}/usr/lib/cage-graph/

  install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
  install -Dm644 ${pkgname}.desktop -t ${pkgdir}/usr/share/applications/
}