summaryrefslogtreecommitdiff
path: root/extra/qalculate-kde
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-03-21 03:22:19 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-03-21 03:22:19 +0000
commitd0f33415f254cb2fee06fd89f9cfed4535322f37 (patch)
tree66c13d72eac4f0110772b4675231c891334137bc /extra/qalculate-kde
parent7e108c74958ec076a3734822f61f145d0d69547f (diff)
Fri Mar 21 03:19:28 UTC 2014
Diffstat (limited to 'extra/qalculate-kde')
-rw-r--r--extra/qalculate-kde/PKGBUILD19
-rw-r--r--extra/qalculate-kde/qalculate-kde-0.9.7-gcc47.patch18
2 files changed, 31 insertions, 6 deletions
diff --git a/extra/qalculate-kde/PKGBUILD b/extra/qalculate-kde/PKGBUILD
index 7f88109ff..32b06321e 100644
--- a/extra/qalculate-kde/PKGBUILD
+++ b/extra/qalculate-kde/PKGBUILD
@@ -1,25 +1,32 @@
-# $Id: PKGBUILD 149455 2012-02-08 03:17:17Z eric $
+# $Id: PKGBUILD 208232 2014-03-20 04:27:17Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=qalculate-kde
pkgver=0.9.7
-pkgrel=3
+pkgrel=4
pkgdesc="KDE frontend for libqalculate"
arch=('i686' 'x86_64')
url="http://qalculate.sourceforge.net/"
license=('GPL')
depends=('libqalculate' 'kdelibs3' 'cln')
options=('!makeflags')
-source=(http://downloads.sourceforge.net/sourceforge/qalculate/${pkgname}-${pkgver}.tar.gz)
-sha1sums=('fa0db8a3fb80264328770c4bbcbc0892a4d4ce91')
+source=(http://downloads.sourceforge.net/sourceforge/qalculate/${pkgname}-${pkgver}.tar.gz
+ qalculate-kde-0.9.7-gcc47.patch)
+sha1sums=('fa0db8a3fb80264328770c4bbcbc0892a4d4ce91'
+ '8f23a12dd37e2fd3d316b78ee0831700310c0d36')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 -i "${srcdir}/qalculate-kde-0.9.7-gcc47.patch"
+}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
./configure --prefix=/opt/kde --without-arts
make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}
diff --git a/extra/qalculate-kde/qalculate-kde-0.9.7-gcc47.patch b/extra/qalculate-kde/qalculate-kde-0.9.7-gcc47.patch
new file mode 100644
index 000000000..33d4047e1
--- /dev/null
+++ b/extra/qalculate-kde/qalculate-kde-0.9.7-gcc47.patch
@@ -0,0 +1,18 @@
+diff -ur qalculate-kde-0.9.7/src/qalculateeditfunctiondialog.cpp qalculate-kde-0.9.7-gcc47/src/qalculateeditfunctiondialog.cpp
+--- qalculate-kde-0.9.7/src/qalculateeditfunctiondialog.cpp 2009-12-03 17:06:06.000000000 +0100
++++ qalculate-kde-0.9.7-gcc47/src/qalculateeditfunctiondialog.cpp 2012-07-31 23:50:07.000000000 +0200
+@@ -377,10 +377,10 @@
+ str = defarg.printlong().c_str();
+ str2 = "";
+ }
+- QListViewItem *i = new KListViewItem(argumentsView, i_prev, str2, str);
+- i_prev = i;
+- argumentsItems[i] = arg;
+- argumentsItemsEdited[i] = false;
++ QListViewItem *item = new KListViewItem(argumentsView, i_prev, str2, str);
++ i_prev = item;
++ argumentsItems[item] = arg;
++ argumentsItemsEdited[item] = false;
+ }
+ }
+ argumentsView->setResizeMode(KListView::AllColumns);