# Maintainer: xiretza # Contributor: Luca Weiss # Contributor: Evgeniy Alekseev # Contributor: Bartłomiej Piotrowski # Contributor: Felipe Hommen # Contributor: moostik pkgname=geogebra-5 pkgver=5.0.676.0 pkgrel=1 pkgdesc="Dynamic mathematics software with interactive graphics, algebra and spreadsheet" arch=('any') url='https://www.geogebra.org/' license=('GPL3' 'CCPL:by-sa' 'CCPL:by-nc') depends=('hicolor-icon-theme' 'java-runtime' 'xdg-utils') provides=("${pkgname//-5/}") conflicts=("${pkgname//-5/}") source=("https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${pkgver//./-}.tar.bz2" "https://static.geogebra.org/images/geogebra-logo.svg" "geogebra" "geogebra.desktop" "geogebra-mime.xml") sha512sums=('0cb6d0270a851e5264ec27d20b089f1d5ad1996fb07a5113ecdf2ed45b45697975858681f1dcbf10917b4276fec99c581accdac5a2686a0da0f21f58ac52ef5f' 'a946acb8867f497c68ce6f8fff8172da4a43a9ca118aafcc5ac414318fd52c4bc6ada387bdfa296f0ff2e1d7411ae345b61197b4adaa3f54299aab837647df55' '65f49cc85ee450e52c7ba8d2f9222a64a81571630afee032c4b680dea35e3c48e5e96d60148bd25163b3e3bdf1b99e55fb8ec010a7f3a47a64ad3b957a232f7b' '64954e749dcd8a9233a932718a4722aab5dfcde868d93998b64f79d54e51c2c34b545665f191f041455f1e945fa46b273417089981d6dff8ed8256519f7e8ae6' '0206240e9b1fc3a7f222a033b85e7f9fe9d3096af99c2c97ad93a2a9cb2fffc60b72baad9fbc07f0e136a5b23a7a34ee6a90820d65796757521fa0014a881626') package() { cd "GeoGebra-Linux-Portable-${pkgver//./-}" install -Dm755 "${srcdir}/geogebra" "${pkgdir}/usr/bin/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" install -Dm644 "${srcdir}/geogebra-mime.xml" "${pkgdir}/usr/share/mime/packages/geogebra.xml" }