void-packages/srcpkgs/wxMaxima/template

30 lines
984 B
Text
Raw Normal View History

# Template file for 'wxMaxima'
2014-11-19 07:40:41 +00:00
pkgname=wxMaxima
2014-12-14 19:02:50 +00:00
version=14.12.0
revision=1
wrksrc="wxmaxima-${version}"
build_style=gnu-configure
configure_args="--with-wx-config=wx-config-3.0 --enable-printing"
2014-12-14 19:02:50 +00:00
makedepends="wxWidgets-devel"
depends="maxima desktop-file-utils"
short_desc="Cross-platform GUI for the computer algebra system Maxima"
maintainer="Martin Riese <grauehaare@gmx.de>"
homepage="http://andrejv.github.io/wxmaxima/"
2014-12-14 19:02:50 +00:00
license="GPL-2"
2014-11-19 07:40:41 +00:00
distfiles="${SOURCEFORGE_SITE}/wxmaxima/wxmaxima-${version}.tar.gz"
2014-12-14 19:02:50 +00:00
checksum=78f2105b16ca7e61c870604fd7652f68c838ea6f1a0454fe7e2b68fede4436b5
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}
}