1 # Contributor: Jan Tylich (Kurt) <jan.tylich (at) gmail.com>
5 pkgdesc="QutIM git translations: Bulgarian, Czech, German, Russian and Ukrainian (BG, CZ, DE, RU, UK)"
12 'qutim-protocol-: Messaging protocols support'
13 'qutim-plugin-: Additional features'
16 _gitroot="git://gitorious.org/qutim/translations.git"
17 _gitname="translations"
21 if [ -d $srcdir/$_gitname ]
23 msg "Updating local repository..."
25 git pull origin master || return 1
26 msg "The local files are updated."
31 msg "git checkout done or server timeout"
32 msg "Creating temporary build directory..."
33 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
34 cd $srcdir/$_gitname-build/
36 langDir=/usr/share/qutim/languages #directory for QutIM languages
37 lang='bg_BG cs_CZ de_DE ru_RU uk_UA' # you can erase languages
41 msg "Building and installing...$i"
43 install -d $srcdir/$_gitname-build/$i/binaries $pkgdir/usr/share/qutim/languages/$i
44 mv $srcdir/$_gitname-build/$i/binaries/* $pkgdir/$langDir/$i/
47 msg "Removing build directory..."
49 rm -Rf ${_gitname}-build