summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranck STAUFFER2020-08-07 09:22:58 +0200
committerFranck STAUFFER2020-08-07 09:22:58 +0200
commit7111d9a3738eac78a2d2555065edb4be62a0a94a (patch)
tree10381ef7531ab0049d63a12b7931f01eff1e1982
parentf42f1671eb8ea849784326f58376c7b635d0eec8 (diff)
downloadaur-7111d9a3738eac78a2d2555065edb4be62a0a94a.tar.gz
Add LICENSE, create json file in build()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 523e2b6396c..2b213dc1026 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,7 +9,9 @@ pkgbase = chromium-extension-privacybadger
depends = chromium
noextract = chromium-extension-privacybadger-2020.7.21.crx
source = chromium-extension-privacybadger-2020.7.21.crx::https://www.eff.org/files/privacy_badger-2020.7.21.crx
+ source = LICENSE-2020.7.21::https://raw.githubusercontent.com/EFForg/privacybadger/6a86f1266f3f88fbd3a1ce8fe77ed5964dcaf91f/LICENSE
b2sums = c87089f5de04d222dc976e68ea483c4544bcb65824dfd1117ecbe7ef8e012eba171dea8540fed9e9c3fc0d7bf2cbfa0a300ab8df3ab062f81cf80bba2f45db94
+ b2sums = b5865247e8de9c9f9bfefab669c2d31e26948393c90be7420756ef540fde9f2742ec137b065ad92516da52b3222ea619ec85b8106bba114dee735a3fc119ad6e
pkgname = chromium-extension-privacybadger
diff --git a/PKGBUILD b/PKGBUILD
index ea31048df41..93cc66868f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,17 +9,18 @@ arch=('any')
url="https://privacybadger.org/"
depends=('chromium')
changelog=$pkgname.changelog
-source=("$pkgname-$pkgver.crx::https://www.eff.org/files/privacy_badger-$pkgver.crx")
+source=("$pkgname-$pkgver.crx::https://www.eff.org/files/privacy_badger-$pkgver.crx"
+ "LICENSE-$pkgver::https://raw.githubusercontent.com/EFForg/privacybadger/6a86f1266f3f88fbd3a1ce8fe77ed5964dcaf91f/LICENSE")
noextract=("$pkgname-$pkgver.crx")
-b2sums=('c87089f5de04d222dc976e68ea483c4544bcb65824dfd1117ecbe7ef8e012eba171dea8540fed9e9c3fc0d7bf2cbfa0a300ab8df3ab062f81cf80bba2f45db94')
+b2sums=('c87089f5de04d222dc976e68ea483c4544bcb65824dfd1117ecbe7ef8e012eba171dea8540fed9e9c3fc0d7bf2cbfa0a300ab8df3ab062f81cf80bba2f45db94'
+ 'b5865247e8de9c9f9bfefab669c2d31e26948393c90be7420756ef540fde9f2742ec137b065ad92516da52b3222ea619ec85b8106bba114dee735a3fc119ad6e')
+
+build() {
+ echo "{ \"external_crx\": \"/usr/share/$pkgname/$pkgname.crx\", \"external_version\": \"$pkgver\" }" > pkehgijcmpdhfbdbbnkijodmdjhbjlgp.json
+}
package() {
install -Dm644 "$pkgname-$pkgver.crx" "$pkgdir/usr/share/$pkgname/$pkgname.crx"
-
- install -dm755 "$pkgdir/usr/share/chromium/extensions/"
-
- echo '{' > "$pkgdir/usr/share/chromium/extensions/pkehgijcmpdhfbdbbnkijodmdjhbjlgp.json"
- echo "\"external_crx\": \"/usr/share/$pkgname/$pkgname.crx\"," >> "$pkgdir/usr/share/chromium/extensions/pkehgijcmpdhfbdbbnkijodmdjhbjlgp.json"
- echo "\"external_version\": \"$pkgver\"" >> "$pkgdir/usr/share/chromium/extensions/pkehgijcmpdhfbdbbnkijodmdjhbjlgp.json"
- echo '}' >> "$pkgdir/usr/share/chromium/extensions/pkehgijcmpdhfbdbbnkijodmdjhbjlgp.json"
+ install -Dm644 pkehgijcmpdhfbdbbnkijodmdjhbjlgp.json "$pkgdir/usr/share/chromium/extensions/pkehgijcmpdhfbdbbnkijodmdjhbjlgp.json"
+ install -Dm644 "LICENSE-$pkgver" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}