summaryrefslogtreecommitdiff
path: root/extra/wxmaxima/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/wxmaxima/PKGBUILD')
-rw-r--r--extra/wxmaxima/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/extra/wxmaxima/PKGBUILD b/extra/wxmaxima/PKGBUILD
new file mode 100644
index 000000000..2bac890f3
--- /dev/null
+++ b/extra/wxmaxima/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD,v 1.10 2008/05/13 19:03:39 ronald Exp $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
+# Contributor: Vinay S Shastry <vinayshastry@gmail.com>
+
+pkgname=wxmaxima
+pkgver=0.8.6
+pkgrel=1
+pkgdesc="A wxWidgets GUI for the computer algebra system Maxima"
+arch=('i686' 'x86_64')
+url="http://wxmaxima.sourceforge.net/"
+license=('GPL2')
+depends=('maxima' 'libxml2' 'wxgtk')
+source=(http://downloads.sourceforge.net/$pkgname/wxMaxima-$pkgver.tar.gz)
+sha1sums=('124357c83672564ce7ee1bc20ff82c262adae52f')
+
+build() {
+ cd "${srcdir}/wxMaxima-${pkgver}"
+ ./configure --prefix=/usr
+ 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
+ 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/"
+}