summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordevninja2016-02-24 12:37:59 -0500
committerdevninja2016-02-24 12:37:59 -0500
commit7356ad1103ec20e3e36df803d38bdb8c2189d154 (patch)
tree8b31b7867062227e01ab37450b34d0a97027a720
parentda01104e4af24cf1ef0d6275d6311f5ef176f553 (diff)
downloadaur-7356ad1103ec20e3e36df803d38bdb8c2189d154.tar.gz
updated PKGBUILD from https-everywhere. Now works with firefox signing
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD25
2 files changed, 18 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f36eccf95b5..fa04d54c70f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Fri Dec 18 01:07:41 UTC 2015
+# Wed Feb 24 17:37:46 UTC 2016
pkgbase = firefox-extension-trackmenot
pkgdesc = Firefox extension to protect web habits from tracking and profiling
pkgver = 0.9.1
- pkgrel = 1
+ pkgrel = 2
url = http://cs.nyu.edu/trackmenot/
arch = any
license = cc-by-nc-sa
diff --git a/PKGBUILD b/PKGBUILD
index 36e07d90deb..8b3baef528c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,19 +7,26 @@ 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=1
+pkgrel=2
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=('97b122eb63fd293f8556cdee4319828e2f23d4f39b2fb1939f830141a95e88b3')
-package(){
- cd $srcdir
- emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf) || return 1
- local dstdir=$pkgdir/usr/lib/firefox/browser/extensions/${emid}
- install -d $dstdir
- cp -r * $dstdir
- rm $dstdir/trackmenot-${pkgver}-fx.xpi
- chmod -R 755 $dstdir
+package() {
+ cd "${srcdir}"
+
+ _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' 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
+ install -dm755 "${_extension_dest}"
+ cp -R ./* "${_extension_dest}"
+ chmod -R ugo+rX "${_extension_dest}"
+ else
+ echo "marker"
+ install -Dm644 ${_plugin_name}-${pkgver}-fx.xpi "${_extension_dest}.xpi"
+ fi
+
}