makedeb


webext-localcdn-chromium 2.6.76-0


Emulates remote frameworks and delivers them as local resource, extension for Chromium.

Click here to go back to the commit logs for webext-localcdn-chromium.

Commit:


Hash: 1e2f311cb68342a83553e6039658189e89b62b56

Message: 2.6.75

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 0d66135..5e9f6dd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,12 +3,11 @@ pkgname = webext-localcdn-chromium
 pkgbase = webext-localcdn-chromium
 pkgdesc = Emulates remote frameworks and delivers them as local resource, extension for Chromium.
 pkgrel = 0
-pkgver = 2.6.74
+pkgver = 2.6.75
 url = https://codeberg.org/nobody/LocalCDN/
 arch = all
 license = MPL2
 optdepends = chromium
-options = !strip
-source = webext-localcdn-chromium_2.6.74.zip::https://codeberg.org/nobody/LocalCDN/archive/v2.6.74.zip
-b2sums = 7dadae50ff5af240b1503375ad05024c2c9d8981096e539fe5baa107c8e6302e61440d6edcd33370314d48bd203ec284a5c7051575e71cc0ecf5f7c37cfa8a88
+source = webext-localcdn-chromium_2.6.75.zip::https://codeberg.org/nobody/LocalCDN/archive/v2.6.75.zip
+b2sums = 7df4d491e33c6de7ff31c26396535618ecadbd3e53ea8ac0af4a98f61c0d45dec5ddaa5cd1c82250606da75f44d0bcd4a1462b55c0ef031502a2f1d81628740f
 optdepends = chromium
diff --git a/PKGBUILD b/PKGBUILD
index 89da6a1..a056043 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
 _name='localcdn'
 pkgname="webext-${_name}-chromium"
-pkgver=2.6.74
+pkgver="2.6.75"
 pkgrel=0
 pkgdesc="Emulates remote frameworks and delivers them as local resource, extension for Chromium."
 arch=('all')
@@ -9,8 +9,8 @@ url='https://codeberg.org/nobody/LocalCDN/'
 license=('MPL2')
 optdepends=('chromium')
 source=("${pkgname}_${pkgver}.zip::${url}archive/v${pkgver}.zip")
-options=('!strip')
-b2sums=('7dadae50ff5af240b1503375ad05024c2c9d8981096e539fe5baa107c8e6302e61440d6edcd33370314d48bd203ec284a5c7051575e71cc0ecf5f7c37cfa8a88')
+extensions=()
+b2sums=('7df4d491e33c6de7ff31c26396535618ecadbd3e53ea8ac0af4a98f61c0d45dec5ddaa5cd1c82250606da75f44d0bcd4a1462b55c0ef031502a2f1d81628740f')
 
 prepare() {
 cd "${srcdir}"
diff --git a/update b/update
new file mode 100755
index 0000000..3e6af92
--- /dev/null
+++ b/update
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+_name='localcdn'
+pkgname="webext-${_name}-chromium"
+url='https://codeberg.org/nobody/LocalCDN/'
+
+version="$(wget  -o /dev/null -O- https://addons.mozilla.org/en-US/firefox/addon/localcdn-fork-of-decentraleyes | grep -m 1 xpi | sed 's!.*/firefox/downloads/file/!!;s!\.xpi.*!!;s!.*-!!')"
+echo "$version"
+
+wget -c -O "${pkgname}_${version}.zip" "${url}archive/v${version}.zip"
+
+hash="$(b2sum "${pkgname}_${version}.zip" | cut -d ' ' -f 1)"
+echo "$hash"
+
+sed -i "s!pkgver=.*!pkgver=\"$version\"!;s!b2sums=.*!b2sums=\(\'$hash\'\)!" PKGBUILD
+