summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDct Mei2019-02-08 19:40:27 +0800
committerDct Mei2019-02-08 19:40:27 +0800
commit59de2ecb484c5e52ff1386223a075666c79ca896 (patch)
tree46f3f5d94c4b75a1a373d2dc786b19c8d31bf616
downloadaur-59de2ecb484c5e52ff1386223a075666c79ca896.tar.gz
Site updated: 2019-02-08 19:40:27
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD39
-rw-r--r--firefox-esr-safe.desktop13
-rw-r--r--firefox-esr.desktop13
-rw-r--r--firefox-esr.install12
5 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e3dd866c2b6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = firefox-esr-bin-zh-cn
+ pkgdesc = Standalone web browser from mozilla.org - Extended Support Release
+ pkgver = 60.5.0
+ pkgrel = 1
+ url = http://www.mozilla.org/zh-CN/firefox/organizations/
+ install = firefox-esr.install
+ arch = i686
+ arch = x86_64
+ license = MPL
+ license = GPL
+ license = LGPL
+ depends = gtk2
+ depends = gtk3
+ depends = libxt
+ depends = dbus-glib
+ depends = nss
+ provides = firefox=60
+ source = https://ftp.mozilla.org/pub/firefox/releases/60.5.0esr/linux-x86_64/zh-CN/firefox-60.5.0esr.tar.bz2
+ source = firefox-esr.desktop
+ source = firefox-esr-safe.desktop
+ sha512sums = 2e0077e54138b74e205992003092243b3e4592f9fd0269e84119430054a662cbd9d4b82726857edae3f343ca6a3f21bdd29a8d206914b39308e86d2164b6e651
+ sha512sums = 2c2c70cb48202d47e7d3b376b8181e7398b23bb83f5da7724f6290709fe1ff3dca9d9c5666310982569beeeba39ec2d55a4372819f9914c79c6583de7eec06ba
+ sha512sums = 8942b11a7cb3761de1185491397185743adf49daa27a2806d14a328a2be8e2cb566c71dc6449016549cb3bd0d328cfe15944490be749a4add213194f6153c3d0
+
+pkgname = firefox-esr-bin-zh-cn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..731293426c2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Manuel Kauschinger <admin at bruzzzla dot de>
+# Previous Maintainer: Will Adams <info at clementlumber dot com>
+# Previous Maintainer: T. Jameson Little <t.jameson.little at gmail dot com>
+# Previous Maintainer: Stephen Michael <ihateseptictanks at gmail dot com>
+# Previous Maintainer: Simon Tunnat <simon+aur@tunn.at>
+# Contributor: Bartlomiej Piotrowski <nospam@bpiotrowski.pl>
+
+pkgname=firefox-esr-bin-zh-cn
+_pkgname=${pkgname/-bin-zh-cn/}
+pkgver=60.5.0
+pkgrel=1
+pkgdesc='Standalone web browser from mozilla.org - Extended Support Release'
+url='http://www.mozilla.org/zh-CN/firefox/organizations/'
+arch=('i686' 'x86_64')
+depends=('gtk2' 'gtk3' 'libxt' 'dbus-glib' 'nss')
+makedepends=()
+provides=('firefox=60')
+license=('MPL' 'GPL' 'LGPL')
+install=$_pkgname.install
+
+sha512sums=('2e0077e54138b74e205992003092243b3e4592f9fd0269e84119430054a662cbd9d4b82726857edae3f343ca6a3f21bdd29a8d206914b39308e86d2164b6e651'
+ '2c2c70cb48202d47e7d3b376b8181e7398b23bb83f5da7724f6290709fe1ff3dca9d9c5666310982569beeeba39ec2d55a4372819f9914c79c6583de7eec06ba'
+ '8942b11a7cb3761de1185491397185743adf49daa27a2806d14a328a2be8e2cb566c71dc6449016549cb3bd0d328cfe15944490be749a4add213194f6153c3d0')
+[[ "$CARCH" == "i686" ]] && sha512sums[0]='e0f81dbd2f7798adcf66e22040f50ba6f6550c4d5e2bf0970228284a2dda98725cd3f40f3c5304120bf759cfe6e3f74c7721eeac8335a72cb714d2f5e4e6dc76'
+
+source=(https://ftp.mozilla.org/pub/firefox/releases/${pkgver}esr/linux-$CARCH/zh-CN/firefox-${pkgver}esr.tar.bz2
+ $_pkgname.desktop
+ $_pkgname-safe.desktop)
+
+package() {
+ cd $srcdir
+
+ install -d $pkgdir/{usr/{bin,share/{applications,pixmaps}},opt}
+ cp -r firefox/ $pkgdir/opt/$_pkgname
+
+ ln -s /opt/$_pkgname/firefox $pkgdir/usr/bin/$_pkgname
+ install -m644 $srcdir/{$_pkgname.desktop,$_pkgname-safe.desktop} $pkgdir/usr/share/applications/
+ install -m644 $srcdir/firefox/browser/chrome/icons/default/default128.png $pkgdir/usr/share/pixmaps/$_pkgname.png
+}
diff --git a/firefox-esr-safe.desktop b/firefox-esr-safe.desktop
new file mode 100644
index 00000000000..3cf9914787c
--- /dev/null
+++ b/firefox-esr-safe.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Name=Firefox ESR - Safe Mode
+GenericName=Web Browser - Safe Mode
+Icon=firefox-esr
+Type=Application
+Categories=Application;Network;
+MimeType=text/html
+Encoding=UTF-8
+Exec=firefox-esr -safe-mode %u
+Terminal=false
+MultipleArgs=false
+StartupNotify=false
+StartupWMClass=Firefox
diff --git a/firefox-esr.desktop b/firefox-esr.desktop
new file mode 100644
index 00000000000..e07dc7a852a
--- /dev/null
+++ b/firefox-esr.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Name=Firefox ESR
+GenericName=Web Browser
+Icon=firefox-esr
+Type=Application
+Categories=Application;Network;
+MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
+Encoding=UTF-8
+Exec=firefox-esr %u
+Terminal=false
+MultipleArgs=false
+StartupNotify=false
+StartupWMClass=Firefox
diff --git a/firefox-esr.install b/firefox-esr.install
new file mode 100644
index 00000000000..c317fbaca44
--- /dev/null
+++ b/firefox-esr.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}