2013-04-28 07:59:03 +08:00
|
|
|
pkgname=wxmaxima
|
2013-05-25 20:19:15 +08:00
|
|
|
pkgver=13.04.2
|
2014-04-17 06:16:17 +08:00
|
|
|
pkgrel=3
|
2013-04-28 07:59:03 +08:00
|
|
|
pkgdesc="A wxWidgets GUI for the computer algebra system Maxima"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://wxmaxima.sourceforge.net/"
|
|
|
|
license=('GPL2')
|
2014-04-17 06:16:17 +08:00
|
|
|
depends=('maxima' 'libxml2' 'wxgtk2.8' 'shared-mime-info' 'desktop-file-utils')
|
2013-05-20 02:43:54 +08:00
|
|
|
source=(http://downloads.sourceforge.net/$pkgname/wxMaxima-$pkgver.tar.gz)
|
2013-04-28 07:59:03 +08:00
|
|
|
install=wxmaxima.install
|
2013-05-25 20:19:15 +08:00
|
|
|
sha1sums=('9508d3badb6c339f34e73e01c5065f679329a17c')
|
2013-04-28 07:59:03 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/wxMaxima-${pkgver}"
|
2014-04-17 06:16:17 +08:00
|
|
|
export WX_CONFIG_PATH=/usr/bin/wx-config-2.8
|
2013-11-11 02:40:09 +08:00
|
|
|
./configure --prefix=/usr
|
2013-04-28 07:59:03 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/wxMaxima-${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;/' wxmaxima.desktop
|
|
|
|
|
|
|
|
# Install desktop file and icon
|
2013-11-11 02:40:09 +08:00
|
|
|
install -m755 -d "${pkgdir}/usr/share/applications"
|
|
|
|
install -m755 -d "${pkgdir}/usr/share/pixmaps"
|
|
|
|
install -m644 wxmaxima.desktop "${pkgdir}/usr/share/applications/"
|
|
|
|
install -m644 data/wxmaxima.png "${pkgdir}/usr/share/pixmaps/"
|
2013-04-28 07:59:03 +08:00
|
|
|
}
|