From 5afc52360c1c8c9da5dca52f4912599557e14c90 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 28 May 2022 15:30:52 +0200 Subject: [PATCH] - hd-idle: rework build --- package/hd-idle/hd-idle.mk | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/package/hd-idle/hd-idle.mk b/package/hd-idle/hd-idle.mk index 830cecc8..185e8a28 100644 --- a/package/hd-idle/hd-idle.mk +++ b/package/hd-idle/hd-idle.mk @@ -9,15 +9,14 @@ HD_IDLE_DIR = hd-idle HD_IDLE_SOURCE = hd-idle-$(HD_IDLE_VERSION).tgz HD_IDLE_SITE = https://sourceforge.net/projects/hd-idle/files -$(DL_DIR)/$(HD_IDLE_SOURCE): - $(download) $(HD_IDLE_SITE)/$(HD_IDLE_SOURCE) +define HD_IDLE_INSTALL_BINARY + $(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/hd-idle $(TARGET_sbindir)/hd-idle +endef +HD_IDLE_PRE_FOLLOWUP_HOOKS += HD_IDLE_INSTALL_BINARY -hd-idle: $(DL_DIR)/$(HD_IDLE_SOURCE) | $(TARGET_DIR) - $(REMOVE)/$(PKG_DIR) - $(UNTAR)/$(PKG_SOURCE) - $(CHDIR)/$(PKG_DIR); \ +hd-idle: | $(TARGET_DIR) + $(call PREPARE) + $(CHDIR)/$($(PKG)_DIR); \ $(TARGET_CONFIGURE_ENV) \ - $(MAKE); \ - $(INSTALL_EXEC) -D hd-idle $(TARGET_sbindir)/hd-idle - $(REMOVE)/$(PKG_DIR) - $(TOUCH) + $(MAKE) + $(call TARGET_FOLLOWUP)