#Maintainer: R S Ananda Murthy pkgname=geogebra pkgver=3.2.46.0 pkgrel=1 zenver=72 arch=i486 source=("http://www.geogebra.org/webstart/installer/${pkgname}-${pkgver}-src.tar.gz" "$pkgname.png" "$pkgname.sh") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/$pkgname/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.geogebra.org/cms/ doinst() { update-mime-database /usr/share/mime/ > /dev/null update-desktop-database -q } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Free mathematics software for learning and teaching" "with interactive graphics, algebra, and spreadsheet." ) build() { # Installing Application cd $startdir/src/$pkgname-$pkgver install -d -m755 $startdir/pkg/usr/share/java/$pkgname/unsigned install -D -m644 *.jar $startdir/pkg/usr/share/java/$pkgname install -D -m644 unsigned/*.jar $startdir/pkg/usr/share/java/$pkgname/unsigned # Creating menu item and copying license install -D -m644 $startdir/src/$pkgname.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/$pkgname.png mkdir -p $startdir/pkg/usr/share/applications mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/src/license.txt $startdir/pkg/usr/doc/$pkgname-$pkgver/license.txt cat < $startdir/pkg/usr/share/applications/$pkgname.desktop [Desktop Entry] Name=Geogebra Comment=A free mathematics software for learning and teaching Encoding=UTF-8 Type=Application Categories=Science Exec=geogebra Icon=geogebra StartupNotify=false EOF # Intalling launcher cd $startdir/src install -D -m755 $pkgname.sh $startdir/pkg/usr/bin/$pkgname # Adding MIME-type install -d -m755 $startdir/pkg/usr/share/icons/hicolor/64x64/mimetypes install -D -m644 $pkgname.png \ $startdir/pkg/usr/share/icons/hicolor/64x64/mimetypes/application-vnd.geogebra.file.png install -D -m644 $pkgname.png \ $startdir/pkg/usr/share/icons/hicolor/64x64/mimetypes/application-vnd.geogebra.tool.png install -D -m644 $startdir/src/$pkgname-$pkgver/$pkgname.xml $startdir/pkg/usr/share/mime/packages/$pkgname.xml }