From 9c783c2158a51ccb07466b3776d4216df4608582 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sat, 3 Aug 2024 22:14:18 +0100 Subject: [PATCH] feat: move battery-monitor from PPA to github --- 01-main/packages/battery-monitor | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/01-main/packages/battery-monitor b/01-main/packages/battery-monitor index fc744b6d..39e9141f 100644 --- a/01-main/packages/battery-monitor +++ b/01-main/packages/battery-monitor @@ -1,7 +1,10 @@ -DEFVER=1 +DEFVER=2 CODENAMES_SUPPORTED="bookworm bullseye buster trixie sid focal jammy kinetic lunar mantic noble" -APT_LIST_NAME="apps.mamolinux.org" -PPA="ppa:mamolinux/gui-apps" +get_github_releases "mamolinux/battery-monitor" "latest" +if [ "${ACTION}" != "prettylist" ]; then + URL=$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4) + VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)" +fi PRETTY_NAME="Battery Monitor" WEBSITE="https://hsbasu.github.io/battery-monitor/" SUMMARY="An X-platform utility tool developed on Python, notifies about charging, discharging, and critically low battery state of the battery on laptop."