summaryrefslogtreecommitdiff
path: root/community/qtoctave
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/qtoctave
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/qtoctave')
-rwxr-xr-xcommunity/qtoctave/PKGBUILD30
-rw-r--r--community/qtoctave/qtoctave-gcc44.patch10
-rw-r--r--community/qtoctave/qtoctave.install14
3 files changed, 54 insertions, 0 deletions
diff --git a/community/qtoctave/PKGBUILD b/community/qtoctave/PKGBUILD
new file mode 100755
index 000000000..aa57b3b79
--- /dev/null
+++ b/community/qtoctave/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
+pkgname=qtoctave
+pkgver=0.10.1
+pkgrel=1
+arch=('i686' 'x86_64')
+pkgdesc="qt frontend for octave"
+url="https://forja.rediris.es/projects/csl-qtoctave/"
+license=('GPL2')
+depends=('qt' 'octave' 'hicolor-icon-theme')
+makedepends=('cmake')
+source=(http://forja.rediris.es/frs/download.php/2054/${pkgname}-${pkgver}.tar.gz \
+ qtoctave-gcc44.patch)
+md5sums=('f23afd8eb850b950f51b65f256a83835'
+ 'ca88a01563e2ad4ad3ae4912289b501d')
+install=qtoctave.install
+options=('!libtool' '!emptydirs')
+
+build() {
+ cd ${srcdir}/${pkgname}-$pkgver
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_BUILD_TYPE=RELEASE .
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-$pkgver
+ make DESTDIR=${pkgdir} install
+}
diff --git a/community/qtoctave/qtoctave-gcc44.patch b/community/qtoctave/qtoctave-gcc44.patch
new file mode 100644
index 000000000..d13869111
--- /dev/null
+++ b/community/qtoctave/qtoctave-gcc44.patch
@@ -0,0 +1,10 @@
+--- src/search_dialog.h.bak 2009-09-09 20:49:14.484802974 +0200
++++ src/search_dialog.h 2009-09-09 20:49:24.222481579 +0200
+@@ -26,6 +26,7 @@
+ #include <QGroupBox>
+ #include <QPushButton>
+ #include "config.h"
++#include <stdio.h>
+
+ class SearchDialog: public QDialog
+ {
diff --git a/community/qtoctave/qtoctave.install b/community/qtoctave/qtoctave.install
new file mode 100644
index 000000000..28fdb48fb
--- /dev/null
+++ b/community/qtoctave/qtoctave.install
@@ -0,0 +1,14 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+