From 2e0a7f9d4690ffa2531158487408a75d29462310 Mon Sep 17 00:00:00 2001 From: Roberto Ricci Date: Sun, 15 Dec 2024 00:48:10 +0100 Subject: [PATCH] passff-host: update to 1.2.5. --- srcpkgs/passff-host/template | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/srcpkgs/passff-host/template b/srcpkgs/passff-host/template index fe0113a4ab1..96613b4faa1 100644 --- a/srcpkgs/passff-host/template +++ b/srcpkgs/passff-host/template @@ -1,25 +1,21 @@ # Template file for 'passff-host' pkgname=passff-host -version=1.2.3 +version=1.2.5 revision=1 depends="python3 pass" short_desc="Host app for the WebExtension PassFF" maintainer="Colin Reeder " license="GPL-2.0-only" -homepage="https://github.com/passff/passff-host" -distfiles="https://github.com/passff/passff-host/releases/download/$version/passff.json - https://github.com/passff/passff-host/releases/download/$version/passff.py" -checksum="cd871bcf29d71e53f986fb74b7f2b1867151ba2b2a27318044c7bfaa38827282 - e90c6e069b47ab0c2e7cc4173dde9d27717be9acfe0861f46b9fb4f083733f99" -skip_extraction="passff.json passff.py" +homepage="https://codeberg.org/PassFF/passff-host" +distfiles="https://codeberg.org/PassFF/passff-host/archive/${version}.tar.gz" +checksum=34ac2c8365d514a10787a29ed880c460728e4f1c72f83f3371d293a993854fc6 do_install() { - local srcdir="$XBPS_SRCDISTDIR/$pkgname-$version" - vinstall "$srcdir"/passff.py 755 usr/libexec - - sed "s#PLACEHOLDER#/usr/libexec/passff.py#g" "$srcdir"/passff.json > passff.json + vsed -i src/passff.py -e "s/_VERSIONHOLDER_/${version}/g" + vinstall src/passff.py 755 usr/libexec + vsed -i src/passff.json -e 's#PLACEHOLDER#/usr/libexec/passff.py#g' for dir in "usr/lib/mozilla/native-messaging-hosts" "etc/opt/chrome/native-messaging-hosts" "etc/chromium/native-messaging-hosts" "etc/vivaldi/native-messaging-hosts"; do - vinstall passff.json 644 "$dir" + vinstall src/passff.json 644 "$dir" done }