-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
42 lines (39 loc) · 1.92 KB
/
PKGBUILD
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
# Maintainer: Agustin Ferrario "py_crash < agustin dot ferrario at hotmail dot com dot ar >
# Contributor: Luis von Bernus <[email protected]>
# Contributors: L42y, aeosynth, Dan Serban, Kalipath
_name=firefox
_channel=aurora
_milestone=25.0a2
pkgname="${_name}-${_channel}"
pkgver=25.0a2.20130806004002
pkgrel=1
pkgdesc="Firefox Aurora channel - Nightly build"
url="http://www.mozilla.org/en_US/${_name}/${_channel}/"
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
depends=('gtk2' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib'
'alsa-lib' 'dbus-glib' 'libnotify' 'desktop-file-utils' 'hicolor-icon-theme'
'libvpx' 'libevent' 'nss>=3.14.1' 'hunspell')
install="${pkgname}.install"
_baseurl="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora"
_filename="${_name}-${_milestone}.en-US.linux-${CARCH}"
_sha512sum="$(curl -vs "${_baseurl}/${_filename}.checksums" 2>&1 | grep bz | grep sha512 | cut -d " " -f1)"
source=("${pkgname}.desktop"
"${pkgname}-safe.desktop"
"${_baseurl}/${_filename}.tar.bz2")
sha512sums=('1c0eef1129625ecfb70809dbb9ab764054d1680f05b7807f503145b5889bc42babb268cb4e2b7b102f90c50cc249114f773d91992e9ac41b5a6966e3b5c95675'
'749bc9bb180909c7319a1576e9df1e4cb06488b33b8dd61b8f1a63e4df9208cb9bb6d0c4ecef3fbe388f78368aef4562ae1dbfda1dbbfa649aa9d247c4903610'
"${_sha512sum}")
pkgver() {
cd "${_name}"
echo "${_milestone}.$(cat platform.ini|grep BuildID|cut -d "=" -f2 )"
}
package() {
install -d "$pkgdir"/{usr/bin,opt}
mv "${_name}" "${pkgdir}/opt/${pkgname}"
ln -s "/opt/${pkgname}/${_name}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 "${pkgname}-safe.desktop" "${pkgdir}/usr/share/applications/${pkgname}-safe.desktop"
install -Dm644 "${pkgdir}/opt/${pkgname}/browser/icons/mozicon128.png" \
"${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png"
}