blob: 29da22daea36e520a55785a5323c0e9e371094e1 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
#lskdfj Maintainer: Robert Ulmer <arch.x(at)frontexpers.com>
pkgname="filius"
pkgver="2.6.1"
_pkgver="${pkgver}"
pkgrel=2
pkgdesc="Network simulation program"
arch=('any')
url="http://www.lernsoftware-filius.de"
license=('GPL')
depends=('java-environment>=8')
source=(http://www.lernsoftware-filius.de/downloads/Setup/$pkgname-$_pkgver.zip)
package() {
cd $srcdir
# cp -r usr/ etc/ $pkgdir
mkdir -p $pkgdir/usr/bin/
mkdir -p $pkgdir/usr/share/filius/
mkdir -p $pkgdir/usr/share/pixmaps/
mkdir -p $pkgdir/usr/share/applications/
mkdir -p $pkgdir/usr/share/mime/packages/
rm Filius.exe
rm Filius.command
# mv lib $pkgdir/usr/lib/filius
cp -r Changelog.md config Einfuehrung_Filius.pdf filius.jar filius.sh GPLv2.txt GPLv3.txt hilfe img Introduction_Filius.pdf lib tmpl $pkgdir/usr/share/filius/
chmod +x $pkgdir/usr/share/filius/filius.sh
echo '#!/bin/sh' > $pkgdir/usr/bin/filius
echo '[ -n "${WAYLAND_DISPLAY}" ] && export _JAVA_AWT_WM_NONREPARENTING=1' >> $pkgdir/usr/bin/filius
echo '/usr/share/filius/filius.sh $*' >> $pkgdir/usr/bin/filius
chmod +x $pkgdir/usr/bin/filius
base64 -d > $pkgdir/usr/share/pixmaps/filius32.png <<EOF
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9
kTtIw1AUhv8+pEUqDnZQcchQnSyIigguWoUiVAi1QqsOJjd9QZOGJMXFUXAtOPhYrDq4OOvq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n
2hZ5nh/3vDzPG6AT2+4DrRD1+fWxBngbMN6XVn/Pu6vr+nJqrAFuEve8jTqcFCsj9rz5c2DF3/OA
hw4VO3UnHMS+rGT/zG1olRgpe96YnXAQKyP2vP1zYC3wHXgPvIopKfCjFZfD4XA9NdaISNInt75F
8ud56qf8L3SUS7sHJVXXAAAAAElFTkSuQmCC
EOF
cat > $pkgdir/usr/share/mime/packages/filius.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-filius">
<comment>Filius file</comment>
<icon name="filius32"/>
<glob-deleteall/>
<glob pattern="*.fls"/>
</mime-type>
</mime-info>
EOF
cat > $pkgdir/usr/share/applications/filius.desktop << EOF
[Desktop Entry]
Name=Filius
Name[de]=Filius
Comment=Learn how Computer Networks are built
Comment[de]=Lernsoftware zu Rechnernetzen
Exec=/usr/share/filius/filius.sh %U
Icon=filius32
Terminal=false
Type=Application
Categories=Education
StartupNotify=false
MimeType=application/x-filius
EOF
}
sha256sums=('4e4d4f7d139d8a2a41b33e29f4a8a7f105a07d1627f46cc75200e10108779549')
|