summaryrefslogtreecommitdiff
path: root/community/goldendict
diff options
context:
space:
mode:
Diffstat (limited to 'community/goldendict')
-rw-r--r--community/goldendict/PKGBUILD18
-rw-r--r--community/goldendict/gcc47.patch23
2 files changed, 32 insertions, 9 deletions
diff --git a/community/goldendict/PKGBUILD b/community/goldendict/PKGBUILD
index 728d5407c..a615d0664 100644
--- a/community/goldendict/PKGBUILD
+++ b/community/goldendict/PKGBUILD
@@ -1,33 +1,33 @@
-# $Id: PKGBUILD 61073 2011-12-21 20:50:41Z andrea $
+# $Id: PKGBUILD 85453 2013-03-01 19:08:27Z andrea $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: m0rph <m0rph.mailbox@gmail.com>
pkgname=goldendict
pkgver=1.0.1
-pkgrel=5
+pkgrel=6
pkgdesc="Feature-rich dictionary lookup program"
arch=('i686' 'x86_64' 'mips64el')
url="http://goldendict.berlios.de/"
license=('GPL3')
-depends=('hunspell' 'libvorbis' 'libxtst' 'libzip' 'qt' 'qtwebkit' 'phonon')
-makedepds=('patch')
+depends=('hunspell' 'libvorbis' 'libxtst' 'libzip' 'qtwebkit' 'phonon')
+makedepends=('patch')
provides=('stardict')
changelog=$pkgname.changelog
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2
$pkgname-paths.diff
- goldendict-1.0.1-gcc-4.7.patch)
+ gcc47.patch)
sha256sums=('b3fb0405a5edb38f02ef881b48c36e46e2eacf641b0caf8d99403f595a4be9a6'
'1dacae7b7a7d7c20a22b4595c07dbd65fdad134a0d4cf283312ea3bdb5f42589'
- 'd61d95f464e82ed83493cbb5ded3ecc59a34eb879eb9c7140d801ee6e0c4454e')
+ '2e13857d047186e781c3bd9de3cfdf794f4d44e8e28f9d18dda8df50cfe13c6e')
build(){
cd ${srcdir}
patch -Np0 -i ${srcdir}/$pkgname-paths.diff
- patch -Np1 -i ${srcdir}/goldendict-1.0.1-gcc-4.7.patch
- qmake
+ patch -p1 -i ${srcdir}/gcc47.patch
+
+ qmake-qt4
make
- qmake
}
package() {
diff --git a/community/goldendict/gcc47.patch b/community/goldendict/gcc47.patch
new file mode 100644
index 000000000..6496d4292
--- /dev/null
+++ b/community/goldendict/gcc47.patch
@@ -0,0 +1,23 @@
+diff -urN goldendict-1.0.1-src.orig/processwrapper.cc goldendict-1.0.1-src/processwrapper.cc
+--- goldendict-1.0.1-src.orig/processwrapper.cc 2010-12-04 02:42:46.000000000 +0530
++++ goldendict-1.0.1-src/processwrapper.cc 2012-08-04 20:51:45.835055609 +0530
+@@ -94,6 +94,8 @@
+
+ #else
+
++#include <unistd.h>
++
+ unsigned int ProcessWrapper::currentProcessId()
+ {
+ return getpid();
+diff -urN goldendict-1.0.1-src.orig/qtsingleapplication/src/qtlocalpeer.cpp goldendict-1.0.1-src/qtsingleapplication/src/qtlocalpeer.cpp
+--- goldendict-1.0.1-src.orig/qtsingleapplication/src/qtlocalpeer.cpp 2010-12-04 02:42:46.000000000 +0530
++++ goldendict-1.0.1-src/qtsingleapplication/src/qtlocalpeer.cpp 2012-08-04 20:48:47.761593825 +0530
+@@ -50,6 +50,7 @@
+ #endif
+ #if defined(Q_OS_UNIX)
+ #include <time.h>
++#include <unistd.h>
+ #endif
+
+ namespace QtLP_Private {