blob: 25d1d7e3cbbe08923472b489057d0bcf2fb60fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: GI_Jack <iamjacksemail@hackermail.com>
# Based on PKGBUILD firefox-extension-httpseverywhere
_plugin_name=trackmenot
_plugin_version=0.9.2
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
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')
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
}
|