blob: c0a584b65c390a405f7129f2d8d3255ebd22f3f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Det <nimetonmaili g-mail>
# Contributors: Achilleas Pipinellis, speed145a, Schnouki
pkgname=firefox-beta-bin
_pkgname=firefox-beta
pkgver=41.0b8
_major=${pkgver/rc*}
_build=${pkgver/*rc}
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org - Beta"
arch=('i686' 'x86_64')
url="https://www.mozilla.org/en-US/firefox/channel/#beta"
license=('MPL' 'GPL' 'LGPL')
depends=('alsa-lib' 'dbus-glib' 'desktop-file-utils' 'gtk2' 'hicolor-icon-theme'
'icu' 'libevent' 'libvpx' 'libxt' 'mime-types' 'nss' 'sqlite')
optdepends=('gstreamer0.10-base: vorbis decoding, ogg demuxing'
'gstreamer0.10-good: webm and mp4 demuxing'
'gstreamer0.10-bad: aac, vp8 and opus decoding'
'gstreamer0.10-ugly: h.264 and mp3 decoding'
'gstreamer0.10-ffmpeg: more decoders'
'libpulse: PulseAudio driver'
'networkmanager: Location detection via available WiFi networks')
makedepends=('pacman>=4.2.0')
provides=("firefox=$pkgver")
install=$pkgname.install
source=("$pkgname.desktop"
"$pkgname-safe.desktop")
source_i686=("https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/linux-i686/en-US/firefox-$pkgver.tar.bz2")
source_x86_64=("https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/linux-x86_64/en-US/firefox-$pkgver.tar.bz2")
# RC
if [[ $_build = ? ]]; then
source_i686=("https://ftp.mozilla.org/pub/mozilla.org/firefox/candidates/$_major-candidates/build$_build/linux-i686/en-US/firefox-$_major.tar.bz2")
source_x86_64=("https://ftp.mozilla.org/pub/mozilla.org/firefox/candidates/$_major-candidates/build$_build/linux-x86_64/en-US/firefox-$_major.tar.bz2")
fi
md5sums=('f7d82a1aac76f0bead4245fc1572eee1'
'6616cf32c69b50a126812334c8d65329')
md5sums_i686=('041179d7cbcbf98a782ca425a399d74e')
md5sums_x86_64=('abaeb4c733fe7a2e46df55225cbb23e6')
package() {
# Create directories
msg2 "Creating directory structure..."
mkdir -p "$pkgdir"/usr/bin
mkdir -p "$pkgdir"/usr/share/applications
mkdir -p "$pkgdir"/usr/share/icons/hicolor/128x128/apps
mkdir -p "$pkgdir"/opt
msg2 "Moving stuff in place..."
# Install
cp -r firefox/ "$pkgdir"/opt/$_pkgname
# /usr/bin symlinks
ln -s /opt/$_pkgname/firefox "$pkgdir"/usr/bin/$_pkgname
ln -s /opt/$_pkgname/firefox "$pkgdir"/usr/bin/$pkgname # compatibility
# Desktops
install -m644 *.desktop "$pkgdir"/usr/share/applications/
# Icons
for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/
ln -s /opt/$_pkgname/browser/chrome/icons/default/default${i/x*}.png \
"$pkgdir"/usr/share/icons/hicolor/$i/apps/$_pkgname.png
done
# 128x128
ln -s /opt/$_pkgname/browser/icons/mozicon128.png \
"$pkgdir"/usr/share/icons/hicolor/128x128/apps/$_pkgname.png
}
|