#Maintainer: fushark #Former Maintainer: Johannes Marbach (hennes) pkgname=wxmaxima pkgver=0.7.5 pkgrel=1 zenver=54 arch=i486 source=("http://surfnet.dl.sourceforge.net/sourceforge/wxmaxima/wxMaxima-$pkgver.tar.gz" "wxmaxima.png") sourcetemplate=http://users.zenwalk.org/user-accounts/fushark/unofficial/wxmaxima docs=("about-nls" "authors" "copying" "changelog" "install" "news" "readme") url=http://wxmaxima.sourceforge.net/wiki/index.php/Main_Page extradepends=("maxima") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "wxmaxima (GUI for Maxima)" "wxMaxima is a cross platform GUI for the computer algebra system" "Maxima based on wxWidgets. wxMaxima features include: 2D formatted" "math display, Menu system for most maxima commands, Dialogs for" "commands which require more than one argument, Command line history," "documents, that contain text mixed with math calculations and" "Animations." ) build() { cd $startdir/src/wxMaxima-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc make || return 1 make install DESTDIR=$startdir/pkg # Icons mkdir -p $startdir/pkg/usr/share/icons/hicolor/{48x48,128x128}/apps cp $startdir/src/$pkgname.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $startdir/src/wxMaxima-$pkgver/$pkgname.png $startdir/pkg/usr/share/icons/hicolor/128x128/apps # .desktop file mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/wxMaxima-$pkgver/$pkgname.desktop $startdir/pkg/usr/share/applications sed -i 's|Icon=wxmaxima.png|Icon=wxmaxima|' \ $startdir/pkg/usr/share/applications/$pkgname.desktop sed -i 's|Categories=Application;Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;|Categories=Science;Education;|' \ $startdir/pkg/usr/share/applications/$pkgname.desktop }