summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd54e2336ec1f73e7de12b070585341194a71147 (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
# Maintainer: Phillipe Smith <phillipe@archlinux.com.br>
pkgname=astah-community
_pkgname=${pkgname/-/_}
pkgver=7.2.0
_pkgver=${pkgver//./_}
pkgrel=2
_pkgrel=1ff236
pkgdesc="Lightweight, easy-to-use, and free UML2.x modeler"
arch=("any")
license=("custom")
depends=("jre8-openjdk")
makedepends=("shared-mime-info" "gtk-update-icon-cache" "desktop-file-utils")
provides=("$_pkgname")
conflicts=("$_pkgname" "astah-professional")
install="${pkgname}.install"
url="http://astah.net/editions/community"
source=("http://cdn.change-vision.com/files/${pkgname}-${_pkgver}-${_pkgrel}.zip"
        "${_pkgname}.desktop"
        "${_pkgname}.xml"
        "${_pkgname}.png"
        "astah_splash_community.png"
        "LICENSE")

md5sums=('de053e4ca0e36781a32d2c5b37464beb'
         'e374756203ba7e4a52309cbe38208683'
         'd821b7726b61ce1c15ef84e31c0c0505'
         'b20ec64a7e6b1ad395c6eed7e8a851b7'
         '95e5566bcef2eb2f7ee5a8ec99eae8af'
         '2082f9bbd578952fbc464416100ac3ff')

package() {
    install -Dm755 $srcdir/$_pkgname/astah $pkgdir/usr/bin/astah || return 1
    install -Dm755 $srcdir/$_pkgname/astah-command.sh $pkgdir/usr/bin/astah-command || return 1
    install -Dm644 $srcdir/${_pkgname}.desktop $pkgdir/usr/share/applications/${_pkgname}.desktop || return 1
    install -Dm644 $srcdir/${_pkgname}.xml $pkgdir/usr/share/mime/packages/${_pkgname}.xml || return 1
    install -Dm644 $srcdir/${_pkgname}.png $pkgdir/usr/share/pixmaps/${_pkgname}.png || return 1
    install -Dm644 $srcdir/astah_splash_community.png ${pkgdir}/usr/lib/${_pkgname}/astah_splash_community.png || return 1
    install -Dm644 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE || return 1
    cp -rf $srcdir/$_pkgname/ ${pkgdir}/usr/lib/$pkgname || return 1
    chmod +x $pkgdir/usr/lib/${pkgname}/astah{,-command.sh}
    sed -i -r "s|^(ASTAH_HOME=).*|\1/usr/lib/$pkgname|" ${pkgdir}/usr/bin/astah
}