updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / geometria / PKGBUILD
blob37f423bbd9665a5c1c5a1ecdaab0b8bbee438434
1 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
4 pkgname=geometria
5 pkgver=3.1.r140
6 pkgrel=1
7 pkgdesc="Provides a graphic interface for creating and solving problems in solid geometry."
8 arch=('any')
9 depends=('java-runtime' 'bash')
10 source=(http://www.geocentral.net/geometria/download/Geometria-${pkgver%0}.zip geometria.desktop Logo.png launch.sh)
11 md5sums=('acc402bd17416e3a449190fa799d0084'
12          'c3557331dc877971dab1169baceb4c3a'
13          '5d29d9b6b5fb9d5b6418dc3224a45faf'
14          '5e79b4bf8a9c76971d6857c596b28b62')
15 url="http://www.geocentral.net/geometria/"
16 license=('GPL')
17 conflicts=('geometria-fr' 'geometria-en' 'geometria-es')
19 package() {
20   install -d ${pkgdir}/usr/share/{java,applications}
21   install -d ${pkgdir}/usr/share/java/$pkgname/
22   cp -R lib ${pkgdir}/usr/share/java/$pkgname/
23   cp -R samples ${pkgdir}/usr/share/java/$pkgname/
24   install -dm777 ${pkgdir}/usr/share/java/$pkgname/logs
25   touch ${pkgdir}/usr/share/java/$pkgname/logs/$pkgname.log
26   chmod 666 ${pkgdir}/usr/share/java/$pkgname/logs/$pkgname.log
27   cp {License.txt,$pkgname.sh} ${pkgdir}/usr/share/java/$pkgname/
28   install -Dm644 ${srcdir}/Logo.png ${pkgdir}/usr/share/java/$pkgname/Logo.png
29   install -Dm755 ${srcdir}/launch.sh ${pkgdir}/usr/bin/$pkgname
30   install -Dm644 ${srcdir}/$pkgname.desktop \
31     ${pkgdir}/usr/share/applications/$pkgname.desktop
32   chmod o-w $pkgdir/usr/share/java/geometria/logs \
33     $pkgdir/usr/share/java/geometria/logs/geometria.log