Commit 06e8ba6f authored by Anke's avatar Anke

porting goldendict from stable to testing

parent 3de47769
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer: abveritas@chakra-project.org
pkgname=goldendict
pkgver=1.0.1
pkgrel=5
pkgdesc="Feature-rich dictionary lookup program"
arch=('x86_64')
url="http://goldendict.berlios.de/"
license=('GPL3')
depends=('hunspell' 'libvorbis' 'libxtst' 'libzip' 'qt' 'phonon')
provides=('stardict')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2
$pkgname-paths.diff
fix-compile.patch)
m5sums=('d56bb854936015104029d1f0b98b61bb'
'4488d4353e5522796c00785f0ce265e1'
'37c953c0a63447000dbada4c5c40cc60')
build(){
cd ${srcdir}
patch -p0 -i ${srcdir}/$pkgname-paths.diff
patch -p0 -i ${srcdir}/fix-compile.patch
qmake
make
qmake
}
package() {
cd ${srcdir}
make INSTALL_ROOT=${pkgdir} install
#removing unneeded
rm -rf ${pkgdir}/usr/share/app-install
}
--- qtsingleapplication/src/qtlocalpeer.cpp.orig 2012-07-19 15:01:51.610446745 +0000
+++ qtsingleapplication/src/qtlocalpeer.cpp 2012-07-19 15:01:10.499880379 +0000
@@ -49,6 +49,7 @@
static PProcessIdToSessionId pProcessIdToSessionId = 0;
#endif
#if defined(Q_OS_UNIX)
+#include <unistd.h>
#include <time.h>
#endif
--- processwrapper.cc.orig 2012-07-19 14:59:46.495424725 +0000
+++ processwrapper.cc 2012-07-19 15:00:07.155695828 +0000
@@ -94,6 +94,8 @@
#else
+#include <unistd.h>
+
unsigned int ProcessWrapper::currentProcessId()
{
return getpid();
--- goldendict.pro~ 2010-12-27 22:52:21.000000000 +0100
+++ goldendict.pro 2010-12-27 22:52:21.000000000 +0100
@@ -63,2 +63,2 @@
- isEmpty( PREFIX ):PREFIX = /usr/local
- DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/apps/goldendict/\\\"
+ isEmpty( PREFIX ):PREFIX = /usr
+ DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/goldendict/\\\"
@@ -66 +66 @@
- locale.path = $$PREFIX/share/apps/goldendict/locale/
+ locale.path = $$PREFIX/share/goldendict/locale/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment