Browse Source

dkjson: Fix PKG_BUILD_DIR paths

This fixes builds on clean checkouts, and also fixes the "md5sum tests
aren't working" notes.

Signed-off-by: Karl Palsson <karlp@remake.is>
Karl Palsson 10 years ago
parent
commit
9c35f14edf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lang/dkjson/Makefile

+ 2
- 2
lang/dkjson/Makefile View File

13
 
13
 
14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
 PKG_SOURCE_URL:=http://dkolf.de/src/dkjson-lua.fsl/tarball/
15
 PKG_SOURCE_URL:=http://dkolf.de/src/dkjson-lua.fsl/tarball/
16
-# TODO: md5sum doesn't seem be taken into account
16
+PKG_BUILD_DIR:=$(PKG_NAME)-$(PKG_VERSION)
17
 PKG_MD5SUM:=dbe706722dd64308172cf8e37395e762
17
 PKG_MD5SUM:=dbe706722dd64308172cf8e37395e762
18
 PKG_LICENSE:=MIT
18
 PKG_LICENSE:=MIT
19
 
19
 
41
 
41
 
42
 define Package/dkjson/install
42
 define Package/dkjson/install
43
 	$(INSTALL_DIR) $(1)/usr/lib/lua
43
 	$(INSTALL_DIR) $(1)/usr/lib/lua
44
-	$(INSTALL_BIN) $(BUILD_DIR)/dkjson/dkjson.lua $(1)/usr/lib/lua/
44
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/dkjson.lua $(1)/usr/lib/lua/
45
 endef
45
 endef
46
 
46
 
47
 $(eval $(call BuildPackage,dkjson))
47
 $(eval $(call BuildPackage,dkjson))