updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / violet / PKGBUILD
blob47d6b0959e56cb7b0cb5bdd5204503da78ee0ac5
1 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
2 # Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
3 pkgname=violet
4 pkgver=0.21.1
5 pkgrel=2
6 pkgdesc="A UML editor for quickly producing simple UML diagrams (also an Eclipse plugin)"
7 arch=('i686' 'x86_64')
8 url="http://violet.sourceforge.net"
9 license=('GPL2')
10 depends=('java-runtime')
11 source=(http://downloads.sourceforge.net/$pkgname/com.horstmann.${pkgname}-$pkgver.jar \
12         $pkgname.sh $pkgname-96x96.png $pkgname.desktop)
13 noextract=(com.horstmann.${pkgname}-$pkgver.jar)
14 md5sums=('6a3ea18fe1492338a181582adb52759f'
15          'a4be0290145e90989aca569fda3fc460'
16          '78c3228e72a25548593910a856f5374e'
17          '7adce6960fd5d330b02f567b68e65112')
18 sha512sums=('0eb40b6b1c4f9f6cdd6637caa63fde9997a4e779248ce20c51d2a4bd4b775757102966259fecc2a45fe00c61ca9aca034bbbfb03fea99f27af929f2b9916cd8e'
19             'd15570505601483df2bb5da09422277479a76ff3f743183336ea1b4b0e17acc6ed46c84ff7c148f5f7b48a30df403632a96349d693c1f3ab421d809c878189ec'
20             '6a31500df821b80a782533a8777adadde8d7535b7303ae13f6b9ba0646c90a2e5384ec95a32dda5e04e3d81dd74659e9b33c444a350526be28ef0b92ae775e6e'
21             '0a48c8ca546200a19587d988e02e7fc6ed6197584255597f9c08269cfec5a94fe2e84527fa7f8c968214479c40d17cfb1ecc5add62fa265a9a07ca50edd1e477')
23 build() {
24   cd $startdir/src/
25   install -D -m644 com.horstmann.${pkgname}-$pkgver.jar $startdir/pkg/usr/share/java/$pkgname/$pkgname.jar
26   install -D -m755 $pkgname.sh $startdir/pkg/usr/bin/$pkgname
27   install -d -m755 $startdir/pkg/opt/eclipse/plugins
28   ln -s ../../../usr/share/java/$pkgname/$pkgname.jar $startdir/pkg/opt/eclipse/plugins/com.horstmann.${pkgname}-$pkgver.jar
30   install -D -m644 $pkgname.desktop  $startdir/pkg/usr/share/applications/$pkgname.desktop
31   install -D -m644 $pkgname-96x96.png $startdir/pkg/usr/share/icons/hicolor/96x96/apps/$pkgname.png
32   install -d -m755 $startdir/pkg/usr/share/pixmaps/
33   ln -s ../icons/hicolor/96x96/apps/$pkgname.png $startdir/pkg/usr/share/pixmaps/$pkgname.png