# $Id$ # Maintainer: Evgeniy Alekseev # Contributor: Bartłomiej Piotrowski # Contributor: Felipe Hommen # Contributor: moostik pkgname=geogebra pkgver=5.0.286.0 pkgrel=1 pkgdesc="Dynamic mathematics software with interactive graphics, algebra and spreadsheet" arch=('any') url='http://www.geogebra.org/' license=('GPL3' 'CCPL:by-sa' 'CCPL:by-nc') depends=('desktop-file-utils' 'gsl' 'hicolor-icon-theme' 'java-runtime' 'shared-mime-info' 'xdg-utils') makedepends=('gendesk') source=("http://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${pkgver//./-}.tar.bz2" "http://static.geogebra.org/images/geogebra-logo.svg" "geogebra") changelog=ChangeLog prepare() { gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" \ --name="GeoGebra" \ --categories="Education;Science;Math" \ --mimetypes="application/vnd.geogebra.file;application/vnd.geogebra.tool" } package() { cd "GeoGebra-Linux-Portable-${pkgver//./-}" install -Dm755 "${srcdir}/geogebra" "${pkgdir}/usr/bin/geogebra" install -dm755 "${pkgdir}/usr/lib/jvm/java-geogebra" cp -r jre1.7.0_45-x86_64/* "${pkgdir}/usr/lib/jvm/java-geogebra/" install -dm755 "${pkgdir}/usr/share/geogebra" install "geogebra/"* -t "${pkgdir}/usr/share/geogebra/" install -Dm644 "${srcdir}/geogebra.desktop" "${pkgdir}/usr/share/applications/geogebra.desktop" install -Dm644 "${srcdir}/geogebra-logo.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/geogebra.svg" } md5sums=('19897600bb120b939ab630fe79a02928' '863782da033f1a337e688b544afb7d07' 'fc4a3140ceb50967598a620eb85219f4')