summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD27
2 files changed, 21 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 46b7bfb6d63..15c68846a48 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,15 @@
# Generated by mksrcinfo v8
-# Mon Apr 25 23:01:17 UTC 2016
+# Sat Oct 7 21:07:08 UTC 2017
pkgbase = firefox-extension-trackmenot
pkgdesc = Firefox extension to protect web habits from tracking and profiling
- pkgver = 0.9.2
- pkgrel = 2
+ pkgver = 0.10.2
+ pkgrel = 1
url = http://cs.nyu.edu/trackmenot/
arch = any
license = cc-by-nc-sa
depends = firefox
- source = https://addons.cdn.mozilla.net/user-media/addons/3173/trackmenot-0.9.2-fx.xpi
- sha256sums = b2f66f27c1c121e174930d0cdb0275ca788012fdcda5b26d1fe5c760c39f26ed
+ source = https://addons.mozilla.org/firefox/downloads/latest/trackmenot/addon-3173-latest.xpi
+ sha256sums = d4f08e0d5f1238e3f218a8d58723b2b29668864d40163186e3bbdf811134de5b
pkgname = firefox-extension-trackmenot
diff --git a/PKGBUILD b/PKGBUILD
index 25d1d7e3cbb..99b126ba767 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,31 +2,36 @@
# Based on PKGBUILD firefox-extension-httpseverywhere
_plugin_name=trackmenot
-_plugin_version=0.9.2
+_plugin_version=0.10.2
+_file_name=addon-3173-latest.xpi
pkgdesc="Firefox extension to protect web habits from tracking and profiling"
license=('cc-by-nc-sa')
pkgname=firefox-extension-$_plugin_name
pkgver=$_plugin_version
-pkgrel=2
+pkgrel=1
arch=('any')
url="http://cs.nyu.edu/trackmenot/"
depends=("firefox")
-source=("https://addons.cdn.mozilla.net/user-media/addons/3173/trackmenot-${pkgver}-fx.xpi")
-sha256sums=('b2f66f27c1c121e174930d0cdb0275ca788012fdcda5b26d1fe5c760c39f26ed')
+source=("https://addons.mozilla.org/firefox/downloads/latest/trackmenot/${_file_name}")
+sha256sums=('d4f08e0d5f1238e3f218a8d58723b2b29668864d40163186e3bbdf811134de5b')
+
+_filename=addon-3173-latest.xpi
+prepare() {
+ cd "${srcdir}"
+ unzip -qqo "${_filename}" -d "${_plugin_name}-${pkgver}"
+}
package() {
cd "${srcdir}"
- _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
+ _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' ${_plugin_name}-${pkgver}/install.rdf)"
_extension_dest="${pkgdir}/usr/lib/firefox/browser/extensions/${_extension_id}"
- # Should this extension be unpacked or not?
- if grep '<em:unpack>true</em:unpack>' install.rdf > /dev/null; then
+ if grep '<em:unpack>true</em:unpack>' ${_plugin_name}-${pkgver}/install.rdf > /dev/null; then
install -dm755 "${_extension_dest}"
- cp -R ./* "${_extension_dest}"
+ cp -R ${_plugin_name}-${pkgver}/* "${_extension_dest}"
chmod -R ugo+rX "${_extension_dest}"
else
- echo "marker"
- install -Dm644 ${_plugin_name}-${pkgver}-fx.xpi "${_extension_dest}.xpi"
+ install -Dm644 "${_filename}" "${_extension_dest}.xpi"
fi
-
}
+