summaryrefslogtreecommitdiff
path: root/community/qstardict
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/qstardict
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/qstardict')
-rw-r--r--community/qstardict/ChangeLog8
-rwxr-xr-xcommunity/qstardict/PKGBUILD33
-rw-r--r--community/qstardict/gcc4.4.patch11
3 files changed, 52 insertions, 0 deletions
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 <dragonlord@aur.archlinux.org>
+ * Update to major release 0.13.1
+
+2008-02-04 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Update to major release 0.13.0
+
+2008-10-05 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * 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 <dragonlord@aur.archlinux.org>
+# Contributor: Alois Nespor <alois.nespor@gmail.com>
+
+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
+ {