void-packages/srcpkgs/wxMaxima/template

30 lines
984 B
Plaintext

# Template file for 'wxMaxima'
pkgname=wxMaxima
version=14.09.0
revision=2
wrksrc="wxmaxima-${version}"
build_style=gnu-configure
configure_args="--with-wx-config=wx-config-3.0 --enable-printing"
short_desc="Cross-platform GUI for the computer algebra system Maxima"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-2"
homepage="http://andrejv.github.io/wxmaxima/"
makedepends="wxWidgets-devel"
depends="maxima desktop-file-utils"
distfiles="${SOURCEFORGE_SITE}/wxmaxima/wxmaxima-${version}.tar.gz"
checksum=584f95619401ba11ea277bc84e86add41edd918b934cdc487a3b31f95ae211f3
post_install() {
# Fix .desktop file
sed -i \
-e 's/Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;/Science;Math;/' \
-e 's|^Icon=wxmaxima.png|Icon=wxmaxima|' wxmaxima.desktop
# Install desktop file and icon
vinstall wxmaxima.desktop 644 usr/share/applications
vinstall data/wxmaxima.png 644 usr/share/pixmaps
# remove unpackaged files
rm -f ${DESTDIR}/usr/share/wxMaxima/{COPYING,README}
}