updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / qutim-l10n-git / PKGBUILD
blobdc950bba7e73d1235abcdccb8937a1f2184eef6f
1 # Contributor: Jan Tylich (Kurt) <jan.tylich (at) gmail.com>
2 pkgname=qutim-l10n-git
3 pkgver=20101111
4 pkgrel=1
5 pkgdesc="QutIM git translations: Bulgarian, Czech, German, Russian and Ukrainian (BG, CZ, DE, RU, UK)"
6 arch=('any')
7 url="http://qutim.org"
8 license=('GPL')
9 depends=('qutim')
10 makedepends=('git')
11 optdepends=(
12 'qutim-protocol-: Messaging protocols support'
13 'qutim-plugin-: Additional features'
16 _gitroot="git://gitorious.org/qutim/translations.git"
17 _gitname="translations"
19 build() {
20 #git work
21   if [ -d $srcdir/$_gitname ]
22   then
23   msg "Updating local repository..."
24   cd $_gitname
25   git pull origin master || return 1
26   msg "The local files are updated."
27   else
28   git clone $_gitroot
29   cd $_gitname
30   fi
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
40   for i in $lang; do
41   msg "Building and installing...$i"
42   ./make.sh compile $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/
45   done
47   msg "Removing build directory..."
48   cd ${srcdir}
49   rm -Rf ${_gitname}-build
51 # vim:syntax=sh