diff options
author | Fanch | 2016-07-24 16:47:42 +0200 |
---|---|---|
committer | Fanch | 2016-07-24 16:47:42 +0200 |
commit | e16c831461953b3338959ef437fa6e9ef696e24f (patch) | |
tree | e82ad17164946bc5df5abbce574f039f96367205 | |
parent | eb9bafc4bd1899a25eac1fd38ceaa18882885bae (diff) | |
download | aur-e16c831461953b3338959ef437fa6e9ef696e24f.tar.gz |
Update Version
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,16 +11,16 @@ url="https://mozilla.github.io/${_plugin_name}/" makedepends=('unzip' ) depends=("firefox") license=('GPL2') -source=("${pkgname}-${pkgver}.xpi::https://addons.mozilla.org/firefox/downloads/latest/self-destructing-cookies/addon-415846-latest.xpi" ) +source=("${pkgname}.xpi::https://addons.mozilla.org/firefox/downloads/latest/self-destructing-cookies/addon-415846-latest.xpi" ) sha1sums=('SKIP') # skip check because this changes rapidly -noextract=("${pkgname}-${pkgver}.xpi") +noextract=("${pkgname}.xpi") pkgver(){ - unzip -p ${pkgname}-${pkgver}.xpi package.json | grep -m1 version | awk -F: '{ print $2 }' | sed 's/[", ]//g' + unzip -p ${pkgname}.xpi package.json | grep -m1 version | awk -F: '{ print $2 }' | sed 's/[", ]//g' } package(){ - srcxpi="${srcdir}/${pkgname}-${pkgver}.xpi" + srcxpi="${srcdir}/${pkgname}.xpi" emid=$(unzip -p "$srcxpi" install.rdf | sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}') |