void-packages/srcpkgs/wxMaxima/template
2018-12-05 20:01:18 -02:00

30 lines
1.1 KiB
Bash

# Template file for 'wxMaxima'
pkgname=wxMaxima
version=18.11.4
revision=1
wrksrc="wxmaxima-Version-${version}"
build_style=cmake
configure_args="-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3"
makedepends="wxWidgets-gtk3-devel"
depends="maxima desktop-file-utils"
short_desc="Cross-platform GUI for the computer algebra system Maxima"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-2.0-or-later"
homepage="https://wxmaxima-developers.github.io/wxmaxima/"
distfiles="https://github.com/wxMaxima-developers/wxmaxima/archive/Version-${version}.tar.gz"
checksum=6a2931a14b9491fb0900cf6127943c6f596ed97bb560f1e84c95303909a1fa71
nocross="clisp is nocross"
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|' data/wxMaxima.desktop
# Install desktop file and icon
vinstall data/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}
}