1 # Contributor: Eugene Yudin aka Infy <Eugene dot Yudin at gmail dot com>
6 pkgdesc="Feature-rich dictionary lookup program."
8 url="http://goldendict.org/"
10 depends=('hunspell' 'libxtst' 'qt' 'zlib' 'libvorbis' 'phonon')
12 source=('goldendict-paths.diff')
13 conflicts=('goldendict' 'goldendict-svn')
14 provides=('goldendict')
15 replaces=('goldendict' 'goldendict-svn')
16 md5sums=('e7e57fb6031aaa647d3195caf123a814')
17 _gitroot="git://github.com/goldendict/goldendict.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
39 patch -Np0 -i ${srcdir}/goldendict-paths.diff || return 1
42 echo "QMAKE_CXXFLAGS_RELEASE = $CFLAGS" >> goldendict.pro
43 echo "QMAKE_CFLAGS_RELEASE = $CXXFLAGS" >> goldendict.pro
45 #Localization workaround
46 lrelease locale/ru_RU.ts -qm locale/ru_RU.qm
47 lrelease locale/zh_CN.ts -qm locale/zh_CN.qm
48 lrelease locale/cs_CZ.ts -qm locale/cs_CZ.qm
49 lrelease locale/de_DE.ts -qm locale/de_DE.qm
50 lrelease locale/el_GR.ts -qm locale/el_GR.qm
51 lrelease locale/bg_BG.ts -qm locale/bg_BG.qm
52 lrelease locale/ar_SA.ts -qm locale/ar_SA.qm
53 lrelease locale/lt_LT.ts -qm locale/lt_LT.qm
58 make INSTALL_ROOT=${pkgdir} install || return 1
61 rm -rf ${pkgdir}/usr/share/app-install || return 1