summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44b8b598ddd1c6591284a19a51d4d7c6b41f91fe (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
# Maintainer: Toxa Anderson <andToxa at gmail dot com>
# Contributor: Ricardo Carlini <rcarlini at gmail dot com>
# Contributor: Emerson Almeida <emersonalmeidax at gmail dot com>
# Contributor: Tobias Borgert <tobias..borgert at gmail dot com>
# Contributor: Daniel Matos <daniel99matos at gmail dot com>
# Contributor: Marco Donadoni <marcodonadoni at live dot it>
# Contributor: Jeroen Rijken <jeroen dot rijken at gmail dot com>
pkgname=archi
_pkgver_major=5
_pkgver_minor=4
_pkgver_patch=3
pkgver=${_pkgver_major}.${_pkgver_minor}.${_pkgver_patch}
pkgrel=0
pkgdesc="Free, open source, cross-platform tool and editor to create ArchiMate models."
arch=('x86_64')
url="http://www.archimatetool.com/"
license=('MIT')
depends=('java-runtime' 'bash')
optdepends=('webkitgtk2: hints view support')
provides=('archi')

source=("https://www.archimatetool.com/downloads/archi/${pkgver}/Archi-Linux64-${pkgver}.tgz"
  "${pkgname}.desktop"
  "${pkgname}-launcher.sh"
  "LICENSE")
sha1sums=('bc5c92be7df3e5a4db5c27687675ba1168864cc2'
          'f6afb119731106e7391848402b01b81cb8d9e72c'
          '8ab6fb57da8e76d5a4dfa3d82a57de5172e6e4b5'
          '99c2483de8ee9bd65693caab97d5ad16455ec835')

package() {
  cd "${srcdir}"

  # Docs
  install -d "${pkgdir}/usr/share/doc/${pkgname}"
  install -m644 Archi/docs/* "${pkgdir}/usr/share/doc/${pkgname}/"

  # Icon and desktop file
  install -Dm644 Archi/icon.xpm "${pkgdir}/usr/share/pixmaps/${pkgname}.xpm"
  install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"

  # Launcher
  install -Dm755 "${pkgname}-launcher.sh" "${pkgdir}/usr/bin/${pkgname}"

  # Copy binaries
  rm -R Archi/docs
  rm Archi/icon.xpm Archi/Archi.sh
  install -d "${pkgdir}/opt"
  cp -R Archi/ "${pkgdir}/opt/${pkgname}"
  chmod 755 "${pkgdir}/opt/${pkgname}/Archi"

  # Install license
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}