gtk/wxmaxima/PKGBUILD
2015-11-02 05:42:41 +00:00

33 lines
998 B
Bash

pkgname=wxmaxima
pkgver=15.08.2
pkgrel=1
pkgdesc="A wxWidgets GUI for the computer algebra system Maxima"
arch=('x86_64')
url="http://wxmaxima.sourceforge.net/"
license=('GPL2')
depends=('maxima' 'libxml2' 'wxgtk' 'shared-mime-info' 'desktop-file-utils')
source=(http://downloads.sourceforge.net/$pkgname/${pkgname}-$pkgver.tar.gz)
install=wxmaxima.install
sha1sums=('e365334527759a8e483f886bd85112d42791f9c2')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# Fix category in .desktop file
sed -i -e 's/Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;/Science;Math;/' data/wxMaxima.desktop
# Install desktop file and icon
install -m755 -d "${pkgdir}/usr/share/applications"
install -m755 -d "${pkgdir}/usr/share/pixmaps"
install -m644 data/wxMaxima.desktop "${pkgdir}/usr/share/applications/"
install -m644 data/wxmaxima.png "${pkgdir}/usr/share/pixmaps/"
}