# Maintainer: xiretza # Contributor: Luca Weiss # Contributor: Evgeniy Alekseev # Contributor: Bartłomiej Piotrowski # Contributor: Felipe Hommen # Contributor: moostik pkgname=geogebra-5 pkgver=5.0.577.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') 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=('529f3b8ded3a0e0ce1814786508b09ed506b884ad99404d09203e478bfa3bb192c43b60fb1e8956f9fecc78ad69b65091d209878d2690ab80d2ad0e730bdfdf6' 'a946acb8867f497c68ce6f8fff8172da4a43a9ca118aafcc5ac414318fd52c4bc6ada387bdfa296f0ff2e1d7411ae345b61197b4adaa3f54299aab837647df55' '65f49cc85ee450e52c7ba8d2f9222a64a81571630afee032c4b680dea35e3c48e5e96d60148bd25163b3e3bdf1b99e55fb8ec010a7f3a47a64ad3b957a232f7b' '64954e749dcd8a9233a932718a4722aab5dfcde868d93998b64f79d54e51c2c34b545665f191f041455f1e945fa46b273417089981d6dff8ed8256519f7e8ae6' '415e73ff15524d5e81b05cf4c31241f4e21a4eedcef0a11e5af82423f9a7c2cbf632e9ee1e86b4cc60ebc566472462979a65cb7f3cfc9f94243fb545ac042a0f') 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" }