vp-build/srcpkgs/wxMaxima/template

30 lines
1019 B
Bash

# Template file for 'wxMaxima'
pkgname=wxMaxima
version=18.02.0
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"
homepage="https://andrejv.github.io/wxmaxima/"
distfiles="https://github.com/andrejv/wxmaxima/archive/Version-${version}.tar.gz"
checksum=727303bd26bdc7eb72dea0b0fcfa60c0180993430d55a4e3700c92eb5e16790e
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}
}