updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / thunderbird-beta-bin-all-localizations / PKGBUILD
blob767df44f81235f53ea9665e684e7cb0c493ac4aa
1 # Maintainer: Simone Sclavi 'Ito' <darkhado@gmail.com>
3 pkgname=thunderbird-beta-bin-all-localizations
4 _mypkgn=thunderbird-beta
5 pkgdesc='Perl script for installing latest TB beta in the language of your choice'
6 url='http://www.mozilla.com/thunderbird/channel/'
7 pkgver=10.0b3
8 pkgrel=1
9 arch=('i686' 'x86_64')
10 license=('MPL' 'GPL' 'GPL3')
11 depends=('desktop-file-utils' 'xulrunner' 'gnome-vfs' 'orbit2' 'hicolor-icon-theme' )
12 makedepends=('gnupg' 'perl-gnupg' 'perl-libwww')
13 source=('ff-downloader.pl' 'thunderbird-beta-bin.desktop')   
14 md5sums=('8bcd8efda02138176a3be8ac3ade6f68'
15          'f8a9b91202e8c85ad7b8f23fb82a4d7b')
16 install=thunderbird.install
18 build()
20     perl ff-downloader.pl -v $pkgver -p tb
22 package() {
23   bsdtar -jxf thunderbird-${pkgver}.tar.bz2  
24   mkdir -p $pkgdir/usr/{bin,lib}
25   cp -a thunderbird $pkgdir/usr/lib/$_mypkgn
26   ln -s /usr/lib/libnotify.so ${pkgdir}/usr/lib/${_mypkgn}/libnotify.so.1
27   ln -s /usr/lib/$_mypkgn/thunderbird $pkgdir/usr/bin/thunderbird-beta
28   for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
29       install -Dm644 thunderbird/chrome/icons/default/default${i/x*/}.png "$pkgdir/usr/share/icons/hicolor/$i/apps/thunderbird-beta.png"
30   done
31   install -Dm644 $_mypkgn-bin.desktop $pkgdir/usr/share/applications/$_mypkgn-bin.desktop
32   ln -s /usr/share/hunspell $pkgdir/usr/lib/$_mypkgn/dictionaries
33   ln -s /usr/share/hyphen $pkgdir/usr/lib/$_mypkgn/hyphenation