summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c356e248c488825f8824e6dbfc7fd1db4a5c6174 (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
# Maintainer: ValHue <vhuelamo at gmail dot com>
# https://github.com/ValHue/AUR-PKGBUILDs
#
# Contributor: Alexander Fehr <pizzapunk gmail com>
#
pkgname="jclic"
pkgver="0.3.2.1"
pkgrel="1"
pkgdesc="Java applications for educational activities."
arch=('any')
url="http://clic.xtec.cat/en/index.htm"
license=('GPL2')
depends=('java-environment')
provides=("${pkgname}")

source=("http://clic.xtec.cat/dist/${pkgname}/${pkgname}-${pkgver}.zip")
sha256sums=('8c36a0fbedfdeef4331e43e0979778e38cb6d3ab27e1733469ec4a619c83f72c')

_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=2 ft=sh et: