summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authordevninja2017-10-07 17:30:11 -0400
committerdevninja2017-10-07 17:30:11 -0400
commit7fa2c41bdd11471d1663417d19426a26fd74ca14 (patch)
treeae0c08eb5a41039a6794715c740148b899490590 /PKGBUILD
parent7771916752bcc20dc135600eed496c09864bdffc (diff)
downloadaur-7fa2c41bdd11471d1663417d19426a26fd74ca14.tar.gz
this should work
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 4 insertions, 13 deletions
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"
}