updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / edumips64 / PKGBUILD
blobe70c8cfd38201aabae68b907cd646218e4b74f2e
1 # Maintainer: Laszlo Papp <djszapi2 at gmail com>
2 pkgname=edumips64
3 pkgver=1.0alpha
4 pkgrel=4
5 pkgdesc="A MIPS64 instruction set simulator written in Java/Swing"
6 arch=('i686' 'x86_64')
7 url="http://www.edumips.org"
8 license=('GPL')
9 depends=('sh' 'hicolor-icon-theme')
10 install=$pkgname.install
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.jar \
12         $pkgname.sh $pkgname.desktop \
13         $pkgname-16x16.png $pkgname-128x128.png)
14 noextract=($pkgname-$pkgver.jar)
15 md5sums=('25eba4b1ebdd40397d867a372bf86268'
16          'ac798adc058196a6a7dd759d7ff10950'
17          'ecd1730d4fcab7df25e837c8571562b6'
18          '14c528b437fab083961db856b3f6b55c'
19          '809c0f21f06f318894e9cd77175c5f83')
21 build() {
22   cd ${srcdir}
23   install -D -m644 $pkgname-$pkgver.jar ${pkgdir}/usr/share/java/$pkgname/$pkgname.jar || return 1
24   install -D -m755 $pkgname.sh ${pkgdir}/usr/bin/$pkgname || return 1
25   for i in 16 128; do
26     install -D -m644 $pkgname-${i}x${i}.png ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png || return 1
27   done
28   install -d -m755 ${pkgdir}/usr/share/pixmaps || return 1
29   ln -s ../icons/hicolor/128x128/apps/$pkgname.png ${pkgdir}/usr/share/pixmaps/$pkgname.png
30   gtk-update-icon-cache -q -t -f ${pkgdir}/usr/share/icons/hicolor