From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/goldendict/PKGBUILD | 40 ++++++++++++++++++++++++++++++ community/goldendict/gcc47.patch | 23 +++++++++++++++++ community/goldendict/goldendict-paths.diff | 10 ++++++++ community/goldendict/goldendict.changelog | 11 ++++++++ 4 files changed, 84 insertions(+) create mode 100644 community/goldendict/PKGBUILD create mode 100644 community/goldendict/gcc47.patch create mode 100644 community/goldendict/goldendict-paths.diff create mode 100644 community/goldendict/goldendict.changelog (limited to 'community/goldendict') diff --git a/community/goldendict/PKGBUILD b/community/goldendict/PKGBUILD new file mode 100644 index 000000000..cdf2a4650 --- /dev/null +++ b/community/goldendict/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 85453 2013-03-01 19:08:27Z andrea $ +# Maintainer: Jaroslav Lichtblau +# Contributor: m0rph + +pkgname=goldendict +pkgver=1.0.1 +pkgrel=6 +pkgdesc="Feature-rich dictionary lookup program" +arch=('i686' 'x86_64') +url="http://goldendict.berlios.de/" +license=('GPL3') +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 + gcc47.patch) +sha256sums=('b3fb0405a5edb38f02ef881b48c36e46e2eacf641b0caf8d99403f595a4be9a6' + '1dacae7b7a7d7c20a22b4595c07dbd65fdad134a0d4cf283312ea3bdb5f42589' + '2e13857d047186e781c3bd9de3cfdf794f4d44e8e28f9d18dda8df50cfe13c6e') + +build(){ + cd ${srcdir} + + patch -Np0 -i ${srcdir}/$pkgname-paths.diff + patch -p1 -i ${srcdir}/gcc47.patch + + qmake-qt4 + make +} + +package() { + cd ${srcdir} + + make INSTALL_ROOT=${pkgdir} install + + #removing unneeded + rm -rf ${pkgdir}/usr/share/app-install +} 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 ++ + 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 ++#include + #endif + + namespace QtLP_Private { diff --git a/community/goldendict/goldendict-paths.diff b/community/goldendict/goldendict-paths.diff new file mode 100644 index 000000000..812dfdb97 --- /dev/null +++ b/community/goldendict/goldendict-paths.diff @@ -0,0 +1,10 @@ +--- 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/ diff --git a/community/goldendict/goldendict.changelog b/community/goldendict/goldendict.changelog new file mode 100644 index 000000000..a42c630d3 --- /dev/null +++ b/community/goldendict/goldendict.changelog @@ -0,0 +1,11 @@ +2011-12-17 Jaroslav Lichtblau + * goldendict 1.0.1-5 libQtWebKit.so.4 now in new qtwebkit package + +2010-12-27 Jaroslav Lichtblau + * Update to major release 1.0.1 + +2010-02-16 Jaroslav Lichtblau + * FS#18350 fixed in 0.9.0-5 + +2009-06-21 Jaroslav Lichtblau + * Package moved to [community] in v0.9.0 -- cgit v1.2.3-54-g00ecf