1 # Maintainer: Sebastian Chlan <sebastian.chlan@gmail.com>
2 # Contributor: Sebastian Chlan <sebastian.chlan@gmail.com>
6 pkgdesc="Enigma is a simple, Java based application designed to help you simulate the function of the Enigma. It is developed by some students from HTL Rennweg, Vienna."
8 url="http://sourceforge.net/projects/enigma-sim/"
10 depends=('java-runtime' 'ttf-ms-fonts')
11 source=(http://downloads.sourceforge.net/project/enigma-sim/Enigma/Enigma_v1.4.jar http://downloads.sourceforge.net/project/enigma-sim/Sniffer/Sniffer.jar 'enigma_tec.desktop' 'enigma_tec_logo.png' 'enigma_tec_sniffer.desktop')
12 md5sums=('9b165e59a1eca35e2b9bc456987ad826'
13 '289c1ffa8b78a43aebb9f48f11f77584'
14 '309270d5f9ba58d847ce572485eafece'
15 '376918fd4a89005b2e9e6b9fbfd20ab8'
16 '8c9d1fe22aa08aa991b1bbd52984824a')
22 mkdir -p $pkgdir/opt/enigma_tec
23 mkdir -p $pkgdir/usr/bin
24 mkdir -p $pkgdir/usr/share/applications
25 mkdir -p $pkgdir/usr/share/pixmaps/
26 msg "Directory created (/opt/enigma_tec)"
28 mv $startdir/Enigma*.jar $pkgdir/opt/enigma_tec/
29 mv $startdir/Sniffer.jar $pkgdir/opt/enigma_tec/
34 ___BINSNFIFF=enigma_tec_sniffer
38 echo "#!/bin/bash" > $___BIN
39 echo "#!/bin/bash" > $___BINSNFIFF
41 echo "java -jar /opt/enigma_tec/Enigma_v1.4.jar &" >> $___BIN
42 echo "java -jar /opt/enigma_tec/Sniffer.jar &" >> $___BINSNFIFF
45 chmod +x $___BINSNFIFF
47 msg "Executables created"
49 mv $startdir/enigma_tec.desktop $pkgdir/usr/share/applications/
50 mv $startdir/enigma_tec_sniffer.desktop $pkgdir/usr/share/applications/
51 mv $startdir/enigma_tec_logo.png $pkgdir/usr/share/pixmaps/
53 msg "Shortcut installed"