aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/lua/Makefile
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-06-21 14:30:01 +0200
committerRafał Miłecki <rafal@milecki.pl>2019-06-28 09:25:59 +0200
commitfe59b46ca7e0716e030a5d7cb0da9b4b6a79a8f4 (patch)
tree3fa7aaf0de9e0c8615d26150eda736426c07eeb0 /package/utils/lua/Makefile
parentc0c5c6351473333ea60488dfea6c7ccea0e9cc12 (diff)
downloadupstream-fe59b46ca7e0716e030a5d7cb0da9b4b6a79a8f4.tar.gz
upstream-fe59b46ca7e0716e030a5d7cb0da9b4b6a79a8f4.tar.bz2
upstream-fe59b46ca7e0716e030a5d7cb0da9b4b6a79a8f4.zip
lua: include version number in installed files
This will allow installing Lua 5.1 and newer versions at the same time. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/utils/lua/Makefile')
-rw-r--r--package/utils/lua/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/utils/lua/Makefile b/package/utils/lua/Makefile
index 077a60fbf3..c911c6a913 100644
--- a/package/utils/lua/Makefile
+++ b/package/utils/lua/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=lua
PKG_VERSION:=5.1.5
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.lua.org/ftp/ \
@@ -154,12 +154,14 @@ endef
define Package/lua/install
$(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lua $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lua5.1 $(1)/usr/bin/
+ $(LN) lua5.1 $(1)/usr/bin/lua
endef
define Package/luac/install
$(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/luac $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/luac5.1 $(1)/usr/bin/
+ $(LN) luac5.1 $(1)/usr/bin/luac
endef
define Package/lua-examples/install