blob: 21429fddc411c877d8295feee3cf4ca66631bef5 (
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
|
# Maintainer: ValHue <vhuelamo at gmail dot com>
#
# Contributor: Alexander Fehr <pizzapunk gmail com>
#
pkgname="jclic"
pkgver="0.3.2.11"
pkgrel="1"
pkgdesc="Java applications for educational activities."
arch=('any')
url="https://clic.xtec.cat/legacy/en/index.html"
license=('GPL2')
depends=('java-environment')
provides=("${pkgname}")
source=("${pkgname}-${pkgver}.zip::http://clic.xtec.cat/dist/${pkgname}/${pkgname}-${pkgver}.zip")
sha256sums=('8cc34322c185c9556a92198f7309f6885165f9742a209097771b9c1fd09daa1f')
_jclic_desktop="[Desktop Entry]
Name=JClic
Exec=java -jar /opt/jclic/jclic.jar
Icon=/opt/jclic/icons/jclic.png
Type=Application
GenericName=Educational activities
GenericName[fr]=Activités éducatives
Comment=Create and organize your library of activities
Comment[fr]=Créé et organise votre bibliothèque d'activités
Terminal=false
Categories=Education;"
_jclic_author_desktop="[Desktop Entry]
Name=JClic author
Exec=java -Xmx256m -jar /opt/jclic/jclicauthor.jar
Icon=/opt/jclic/icons/author.png
Type=Application
GenericName=Create educational activities
GenericName[fr]=Créer des activités éducatives
Comment=Create educational activities
Comment[fr]=Créé des activités éducatives
Terminal=false
Categories=Education;"
_jclic_reports_desktop="[Desktop Entry]
Name=JClic reports
Exec=java -jar /opt/jclic/jclicreports.jar
Icon=/opt/jclic/icons/reports.png
Type=Application
GenericName=Results of the educational activities
GenericName[fr]=Résultats des activités éducatives
Comment=Statistical reports
Comment[fr]=Rapports statistique
Terminal=false
Categories=Education;"
build() {
cd "${srcdir}"
echo -e "$_jclic_desktop" | tee jclic.desktop
echo -e "$_jclic_author_desktop" | tee jclic-author.desktop
echo -e "$_jclic_reports_desktop" | tee jclic-reports.desktop
}
package() {
install -d ${pkgdir}/opt
cp -r ${srcdir}/${pkgname}-${pkgver} ${pkgdir}/opt/${pkgname}
install -d ${pkgdir}/usr/share/applications
install -m 644 ${srcdir}/*.desktop ${pkgdir}/usr/share/applications/
}
# vim:set ts=4 sw=4 et syn=sh ft=sh:
|