updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / indicator-language-pack / PKGBUILD
blobd42dd7bb0d480c74449f7fb87d4f4ede2e131c9e
1 # Maintainer: Gianfranco 'Gianfrix' Micoli <gianfrix.mg@gmail.com>
3 # Modify this line to choose your language
4 _lang=it
5 pkgname=indicator-language-pack
6 pkgver=10.10+20100930
7 pkgrel=1
8 pkgdesc="Language pack for Indicator Applets. Edit the PKGBUILD before compiling to choose your own language."
9 arch=(i686)
10 url="http://www.ubuntu.com"
11 license=('GPL')
12 depends=('indicator-applet')
13 source=(http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-$_lang-base/language-pack-$_lang-base_$pkgver.tar.gz
14 http://archive.ubuntu.com/ubuntu/pool/main/l/language-pack-gnome-$_lang-base/language-pack-gnome-$_lang-base_$pkgver.tar.gz
15 po-list-base
16 po-list-gnome-base)
18 build() {
19   msg "Creating language pack for language $_lang"
20   cd "$srcdir/language-pack-$_lang-base/data/$_lang/LC_MESSAGES"
21   cat $srcdir/po-list-base | xargs -iXXX msgfmt -o $srcdir/XXX.mo XXX.po
22   cd "$srcdir/language-pack-gnome-$_lang-base/data/$_lang/LC_MESSAGES"
23   cat $srcdir/po-list-gnome-base | xargs -iXXX msgfmt -o $srcdir/XXX.mo XXX.po
24   msg "Done!"
27 package() {
28   install -d $pkgdir/usr/share/locale/$_lang/LC_MESSAGES
29   cp -vr $srcdir/*.mo $pkgdir/usr/share/locale/$_lang/LC_MESSAGES
32 # You have to generate your own MD5s! This one is for italian language. DON'T change po-list* files!
33 md5sums=('f4b1a67a39c778d5e79abd41f5d0beb6'
34          'e4aa203649ccb13c428639513ab99b0f'
35          '49a6d8de80afd6596f126c3300608243'
36          'adddf627253f4d811f4a1ca2f25a6da2')