updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / firefox-beta-bin-it / PKGBUILD
blobf61b36ec868f8b5768cff0840b0ef7e0a324a625
1 # Contributor: polslinux <www.polslinux.it>
3 pkgname=firefox-beta-bin-it
4 _pkgreal=firefox-beta-bin
5 _pkgnome=firefox-beta
6 pkgver=10.0b4
7 pkgrel=1
8 _lang=it
9 _srcurl=ftp://ftp.mozilla.org/pub/firefox/releases
10 pkgdesc='Standalone web browser from mozilla.org! Latest beta with Italian language'
11 url='http://www.mozilla.org/projects/firefox'
12 arch=('i686' 'x86_64')
13 depends=('dbus-glib' 'desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info')
14 license=('MPL' 'GPL' 'LGPL')
15 provides=("firefox=$pkgver")
16 source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/linux-i686/it/firefox-$pkgver.tar.bz2
17         firefox-beta.desktop
18         firefox-beta-safe.desktop)
19 [ "$CARCH" = 'x86_64' ] && source[0]="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/linux-x86_64/it/firefox-$pkgver.tar.bz2"
20 md5sums=(`curl -s ${source/li*}/MD5SUMS | grep it | grep "$CARCH" | grep bz | cut -d " " -f1`
21          'ae3521941bdf0d760dd1b4c36f203d14'
22          '275ff1cc88e3080578a7262411cd223e')
23           
24 package() {
25         cd $srcdir
27         mkdir -p $pkgdir/{usr/{bin,share/{applications,pixmaps}},opt}
28         cp -r firefox $pkgdir/opt/${_pkgreal}-$pkgver
30         ln -s /opt/${_pkgreal}-$pkgver/firefox $pkgdir/usr/bin/${_pkgreal}
31         install -m644 $srcdir/{$_pkgnome.desktop,$_pkgnome-safe.desktop} $pkgdir/usr/share/applications/
32         install -m644 $srcdir/firefox/icons/mozicon128.png $pkgdir/usr/share/pixmaps/${_pkgreal}-icon.png