mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 06:30:21 +08:00
slide-switch: Update to 1.0.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
parent
e213095c49
commit
ec5b181b49
@ -8,12 +8,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=slide-switch
|
||||
PKG_VERSION:=0.9.7
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/jefferyto/openwrt-slide-switch.git
|
||||
PKG_MIRROR_HASH:=a0bba3e952179d96667be293a230b2ad26b3bfdd7b01962116f2c99428696bc5
|
||||
PKG_MIRROR_HASH:=6afa0b444b13fc9cec23643203cfd82526007156b459a4e98b728e1b321edfbd
|
||||
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
@ -40,6 +40,10 @@ slide-switch translates slide switch position changes into normal button
|
||||
presses and releases for OpenWrt devices.
|
||||
endef
|
||||
|
||||
define Package/slide-switch/conffiles
|
||||
/etc/slide-switch/switch-data.json
|
||||
endef
|
||||
|
||||
define Package/slide-switch/install
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/button
|
||||
$(INSTALL_DATA) \
|
||||
@ -48,7 +52,8 @@ define Package/slide-switch/install
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) \
|
||||
$(PKG_INSTALL_DIR)/etc/init.d/zzz-slide-switch \
|
||||
$(PKG_INSTALL_DIR)/etc/init.d/slide-switch \
|
||||
$(PKG_INSTALL_DIR)/etc/init.d/zzz-slide-switch-update \
|
||||
$(1)/etc/init.d
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
@ -63,12 +68,4 @@ 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))
|
||||
|
Loading…
Reference in New Issue
Block a user