package/urg: fix extraction commands
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 1 Oct 2017 15:21:30 +0000 (17:21 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 1 Oct 2017 21:21:00 +0000 (23:21 +0200)
Currently, the extraction commands entirely remove the urg directory,
which means the downloaded stamp will get removed, and thus a subsequent
build would try to re-download it.

It turns out that the directory extracted by urg is already correctly
named, so we just need to extract out of the build directory. This
highly simplifies the command.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/urg/urg.mk

index 4a41779709a544d49cccc1eb2515f4e2e25b1ed9..966627fe36b85c38b3e236bf403ec225618a3123 100644 (file)
@@ -25,10 +25,7 @@ endif
 URG_CONFIG_SCRIPTS = c_urg-config urg-config
 
 define URG_EXTRACT_CMDS
-       $(RM) -rf $(URG_DIR)
-       $(UNZIP) -d $(BUILD_DIR)/ $(DL_DIR)/$(URG_SOURCE)
-       test -d $(URG_DIR) || \
-               mv $(BUILD_DIR)/$(subst .zip,,$(URG_SOURCE)) $(URG_DIR)
+       $(UNZIP) -d $(BUILD_DIR) $(DL_DIR)/$(URG_SOURCE)
 endef
 
 $(eval $(autotools-package))