summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordevninja2017-10-07 17:30:11 -0400
committerdevninja2017-10-07 17:30:11 -0400
commit7fa2c41bdd11471d1663417d19426a26fd74ca14 (patch)
treeae0c08eb5a41039a6794715c740148b899490590
parent7771916752bcc20dc135600eed496c09864bdffc (diff)
downloadaur-7fa2c41bdd11471d1663417d19426a26fd74ca14.tar.gz
this should work
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD17
2 files changed, 5 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 15c68846a48..068953944c4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sat Oct 7 21:07:08 UTC 2017
+# Sat Oct 7 21:30:06 UTC 2017
pkgbase = firefox-extension-trackmenot
pkgdesc = Firefox extension to protect web habits from tracking and profiling
pkgver = 0.10.2
diff --git a/PKGBUILD b/PKGBUILD
index 99b126ba767..d853338ccd5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,22 +16,13 @@ source=("https://addons.mozilla.org/firefox/downloads/latest/trackmenot/${_file_
sha256sums=('d4f08e0d5f1238e3f218a8d58723b2b29668864d40163186e3bbdf811134de5b')
_filename=addon-3173-latest.xpi
-prepare() {
- cd "${srcdir}"
- unzip -qqo "${_filename}" -d "${_plugin_name}-${pkgver}"
-}
package() {
+ local _extension_id="trackmenot@mrl.nyu.edu.xpi"
+ local _extension_dest="${pkgdir}/usr/lib/firefox/browser/extensions/${_extension_id}"
+
cd "${srcdir}"
- _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}"
- if grep '<em:unpack>true</em:unpack>' ${_plugin_name}-${pkgver}/install.rdf > /dev/null; then
- install -dm755 "${_extension_dest}"
- cp -R ${_plugin_name}-${pkgver}/* "${_extension_dest}"
- chmod -R ugo+rX "${_extension_dest}"
- else
- install -Dm644 "${_filename}" "${_extension_dest}.xpi"
- fi
+ install -Dm644 "${_filename}" "${_extension_dest}.xpi"
}