updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / swiftweasel-amd64-pgo / PKGBUILD
blob23debd35b1fb61403922bd0fe6fb3b5e8d4cc7bf
1 # Maintainer: speed145a/Jonny James <speed145a@aol.com>
2 # Contributor: Yuanhao Li<yuanhao.li@gmail.com>
4 pkgname=swiftweasel-amd64-pgo
5 _pkgname=swiftweasel
6 pkgver=3.5.6
7 pkgrel=1
8 pkgdesc="Mozilla Firefox optimized build for AMD 64-bit processors (64 bit version)."
9 arch=('x86_64')
10 url="http://swiftweasel.tuxfamily.org/"
11 license=('MPL' 'GPL' 'LGPL')
12 depends=(nss mozilla-common desktop-file-utils libidl2 libxcomposite)
13 conflicts=('swiftweasel-nocona-64' 'swiftweasel-prescott' 'swiftweasel-athlon-xp' \
14            'swiftweasel-pentium-4' 'swiftweasel-pentium-4m' 'swiftweasel-pentium-m' \
15            'swiftweasel-pentium-3' 'swiftweasel-athlon64')
16 provides=('firefox')
18 source=(http://download.tuxfamily.org/swiftweasel/swiftweasel-35/${pkgver}-tar.gz/swiftweasel-${pkgver}_amd-pgo_x86_64-arch.tar.gz
19         swiftweasel.desktop
20         swiftweasel-safe.desktop)
21 md5sums=('5f4d83122f2686d65c91c67191f0f378'
22          'e02fc1051ff31e05e45ec99eb38e16f6'
23          'eef46b6617fb0dab69037c122793c6fb')
25 build() {
26   cd $srcdir
27   install -dm755 $pkgdir/opt
28   cp -r $_pkgname $pkgdir/opt/$_pkgname
29   install -dm755 $pkgdir/usr/bin
31   ## Fix error install.rdf
32   chmod -R 755 $pkgdir/opt/$_pkgname/extensions/*
34   ln -s /opt/$_pkgname/$_pkgname $pkgdir/usr/bin/$_pkgname
36   install -dm755 $pkgdir/usr/share/applications
37   install -dm755 $pkgdir/usr/share/pixmaps
39   install -m644 -D $srcdir/swiftweasel/icons/mozicon128.png \
40         $pkgdir/usr/share/pixmaps/swiftweasel.png || return 1
41   install -m644 $srcdir/swiftweasel.desktop \
42         $pkgdir/usr/share/applications/ || return 1
43   install -m644 $srcdir/swiftweasel-safe.desktop \
44         $pkgdir/usr/share/applications/ || return 1