blob: 5155971b11ba16e5dca1b5ba8b571688e74b7219 (
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
|
# Maintainer: Det <nimetonmaili g-mail>
# Contributors: Achilleas Pipinellis, speed145a, Schnouki
pkgname=firefox-beta-bin
_pkgname=firefox-beta
pkgver=47.0b7
_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' 'gtk3' 'hicolor-icon-theme'
'icu' 'libevent' 'libvpx' 'libxt' 'mime-types' 'nss' 'sqlite')
optdepends=('ffmpeg: H264/AAC/MP3 decoding'
'libpulse: PulseAudio driver'
'networkmanager: Location detection via available WiFi networks'
'upower: Battery API')
provides=("firefox=$pkgver")
install=$pkgname.install
source=("$pkgname.desktop"
"$pkgname-safe.desktop")
source_i686=("https://ftp.mozilla.org/pub/firefox/releases/$pkgver/linux-i686/en-US/firefox-$pkgver.tar.bz2")
source_x86_64=("https://ftp.mozilla.org/pub/firefox/releases/$pkgver/linux-x86_64/en-US/firefox-$pkgver.tar.bz2")
# RC
if [[ $_build = ? ]]; then
source_i686=("https://ftp.mozilla.org/pub/firefox/candidates/$_major-candidates/build$_build/linux-i686/en-US/firefox-$_major.tar.bz2")
source_x86_64=("https://ftp.mozilla.org/pub/firefox/candidates/$_major-candidates/build$_build/linux-x86_64/en-US/firefox-$_major.tar.bz2")
fi
sha512sums=('702359fd891da5ac3b24124a328f70bac3034e9bbb33c1eb00da15420825ce3e13cf62bfdf5fe2ef9cc876a0e533422d7989af62e966123a21171293e5e4fa14'
'776fccb247711d33621605dd0807c03528ffd0f9bc14f20b4f60f344589c1aad62e9377c22bcf583066c8c600cd86bf9db5b48e2c44924cd48a48c1c4a9c39a0')
sha512sums_i686=('6f17ec93375c68d65e74e197fe183caf24dfbd5129a3e0e1174d2b1e42d96af223464b1e127936c64c8c43778564db0fee9199715a115b2c13c9926494305a66')
sha512sums_x86_64=('3eb045fcf95ff255ad126a806379f438f610f27a414439403200e5a915ae5c1316b3b1e9ca2dce2338697f6cd3a65cce4778910299ec731238e22a31a2dee1ae')
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
}
|