summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorJorge López Seijas <jorginho@lavabit.com>2013-03-03 16:18:14 +0100
committerJorge López Seijas <jorginho@lavabit.com>2013-03-03 16:18:14 +0100
commitb1270f2756f2b7374293358d6d09cc4b1302fbea (patch)
tree30e029b45815b1d8cdd3043d83735cf7fb697d09 /pcr
parent5c1d7394ae368311991c38b462022ae3b3b4742b (diff)
downloadabslibre-b1270f2756f2b7374293358d6d09cc4b1302fbea.tar.gz
abslibre-b1270f2756f2b7374293358d6d09cc4b1302fbea.tar.bz2
abslibre-b1270f2756f2b7374293358d6d09cc4b1302fbea.zip
updated qtoctave for qt4 dependency
Diffstat (limited to 'pcr')
-rw-r--r--pcr/qtoctave/PKGBUILD31
-rw-r--r--pcr/qtoctave/qtoctave.install14
2 files changed, 45 insertions, 0 deletions
diff --git a/pcr/qtoctave/PKGBUILD b/pcr/qtoctave/PKGBUILD
new file mode 100644
index 000000000..d84dfa3a2
--- /dev/null
+++ b/pcr/qtoctave/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Michael Schubert <mschu.dev at gmail>
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+
+pkgname=qtoctave
+pkgver=0.10.1
+pkgrel=2
+arch=('i686' 'x86_64')
+pkgdesc="Qt4 frontend for octave"
+url="https://forja.rediris.es/projects/csl-qtoctave/"
+license=('GPL2')
+depends=('qt4' 'octave' 'hicolor-icon-theme')
+makedepends=('cmake')
+source=("http://forja.rediris.es/frs/download.php/2054/${pkgname}-${pkgver}.tar.gz")
+md5sums=('f23afd8eb850b950f51b65f256a83835')
+install="qtoctave.install"
+options=('!libtool' '!emptydirs')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i "s/lrelease/lrelease-qt4/" qtoctave/src/CMakeLists.txt
+
+ 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/pcr/qtoctave/qtoctave.install b/pcr/qtoctave/qtoctave.install
new file mode 100644
index 000000000..28fdb48fb
--- /dev/null
+++ b/pcr/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
+}
+