summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24b71446ebff63ef6f631f12b2bacd7493478b62 (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
# Maintainer: Sebastian Lau <lauseb644 _at_ gmail _dot_ com>
# Contributor: Caleb Cushing <xenoterracide@gmail.com>
# Contributor: Romain Schmitz <slopjong .at. slopjong .dot. de>
# Forked from Phillipe Smith <phillipe@archlinux.com.br>

pkgname='astah-professional'
_pkgname=${pkgname//-/_}
pkgver='7.2.0'
_pkgver=${pkgver//./_}
pkgrel=2
_pkgrel=1ff236
pkgdesc='easy-to-use UML2.x modeler'
arch=('any')
url="http://astah.net/editions/professional"
conflicts=('astah_community')
license=('custom:none')
depends=('java-runtime>=8')
source=("http://cdn.change-vision.com/files/${pkgname}-${_pkgver}-$_pkgrel.zip"
	"astah-professional.desktop"
	"astah-professional.png"
	"astah-professional.xml"
	"astah-professional-doc.png"
	"LICENSE")

md5sums=('bda39b1fc3030ce97f31899bd7893be4'
         '7f85e4ae3c0331d8a7d842a0c17090f9'
         'df84e754977e1958963779b3a59182e1'
         '2fbccb662c6435f75c62751437fb3f1e'
         '4dbc30adaf0a7af35fdf16a04c44b80c'
         '3b5f3a3c4e453544e9c665c7950960fc')

install="astah-professional.install"

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/${pkgname}-doc.png $pkgdir/usr/share/pixmaps/${pkgname}-doc.png || return 1
    install -Dm644 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE || return 1
    install -Dm755 -d ${pkgdir}/usr/lib || return 1
    cp -rf $srcdir/$_pkgname ${pkgdir}/usr/lib/$pkgname || return 1
    rm $pkgdir/usr/lib/${pkgname}/astah{,-command.sh}
    
    sed -i -r "s|^(ASTAH_HOME=).*|\1/usr/lib/$pkgname|" ${pkgdir}/usr/bin/astah
}