From c5e0785795a1810adac661fe7ffe458e6d85d71f Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 4 Feb 2022 19:22:06 +0800 Subject: [PATCH] slide-switch: Update to 0.9.6 Signed-off-by: Jeffery To --- utils/slide-switch/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/utils/slide-switch/Makefile b/utils/slide-switch/Makefile index e3ac083690..0583ed94cc 100644 --- a/utils/slide-switch/Makefile +++ b/utils/slide-switch/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2016, 2018-2019 Jeffery To +# Copyright (C) 2016, 2018-2019, 2021 Jeffery To # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=slide-switch -PKG_VERSION:=0.9.5 +PKG_VERSION:=0.9.6 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/jefferyto/openwrt-slide-switch.git -PKG_MIRROR_HASH:=ac61aea3ce620364285de5525635999aa8b463c4070da6bce134278ff92a433c +PKG_MIRROR_HASH:=4a11db6954c5a8ff9eb253600de0d9b034e639f053604bae0c9a6802dd685be5 PKG_SOURCE_VERSION:=$(PKG_VERSION) PKG_BUILD_PARALLEL:=1 @@ -63,4 +63,12 @@ define Package/slide-switch/install $(1)/usr/share/slide-switch endef +define Package/slide-switch/postinst +[ -n "$$IPKG_INSTROOT" ] || /usr/sbin/slide-switch clean +endef + +define Package/slide-switch/prerm +[ -n "$$IPKG_INSTROOT" ] || /usr/sbin/slide-switch clean +endef + $(eval $(call BuildPackage,slide-switch)) -- 2.30.2