From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/qstardict/ChangeLog | 8 ++++++++ community/qstardict/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ community/qstardict/gcc4.4.patch | 11 +++++++++++ 3 files changed, 52 insertions(+) create mode 100644 community/qstardict/ChangeLog create mode 100755 community/qstardict/PKGBUILD create mode 100644 community/qstardict/gcc4.4.patch (limited to 'community/qstardict') diff --git a/community/qstardict/ChangeLog b/community/qstardict/ChangeLog new file mode 100644 index 000000000..f79486aa2 --- /dev/null +++ b/community/qstardict/ChangeLog @@ -0,0 +1,8 @@ +2008-02-15 Jaroslav Lichtblau + * Update to major release 0.13.1 + +2008-02-04 Jaroslav Lichtblau + * Update to major release 0.13.0 + +2008-10-05 Jaroslav Lichtblau + * Moved to [community] diff --git a/community/qstardict/PKGBUILD b/community/qstardict/PKGBUILD new file mode 100755 index 000000000..6310c9c5e --- /dev/null +++ b/community/qstardict/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 14399 2010-04-03 11:38:56Z foutrelis $ +# Maintainer: Jaroslav Lichtblau +# Contributor: Alois Nespor + +pkgname=qstardict +pkgver=0.13.1 +pkgrel=3 +pkgdesc="Qt4 clone of StarDict with full support of StarDict dictionaries." +arch=('i686' 'x86_64') +url="http://qstardict.ylsoftware.com/index.php" +license=('GPL2') +depends=('qt') +optdepends=('festival-awb-arctic: for pronouncing words, Scottish English male speaker' + 'festival-don: for pronouncing words, British English RP male speaker' + 'festival-kallpc16k: for pronouncing words, British English RP male speaker' + 'festival-rablpc16k: for pronouncing words, British English RP male speaker') +provides=('stardict') +source=(http://qstardict.ylsoftware.com/files/${pkgname}-${pkgver}.tar.bz2 + gcc4.4.patch) + +md5sums=('0828c3fa01c5237db8a67d356a9d1a8c' + 'c6ed927f349025bdbf202f1c5a5888e8') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + # This patch is commited upstream, remove on next release + patch -Np1 -i "$srcdir/gcc4.4.patch" || return 1 + + qmake ENABLED_PLUGINS="stardict web swac" || return 1 + make || return 1 + make INSTALL_ROOT=${pkgdir} install +} diff --git a/community/qstardict/gcc4.4.patch b/community/qstardict/gcc4.4.patch new file mode 100644 index 000000000..5c285ac2f --- /dev/null +++ b/community/qstardict/gcc4.4.patch @@ -0,0 +1,11 @@ +--- trunk/plugins/stardict/dictziplib.cpp 2009/07/10 15:01:40 446 ++++ trunk/plugins/stardict/dictziplib.cpp 2009/08/06 07:32:12 447 +@@ -305,7 +305,7 @@ + + #ifdef Q_OS_UNIX + if (stat(fname.c_str(), &sb) || !S_ISREG(sb.st_mode)) +-#elif def Q_OS_WIN32 ++#elif defined(Q_OS_WIN32) + if (_stat(fname.c_str(), &sb) || !(sb.stMode & _S_IFREG)) + #endif + { -- cgit v1.2.3-54-g00ecf