aboutsummaryrefslogtreecommitdiff
path: root/lang/lua-penlight
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2017-03-07 13:41:01 +0100
committerStijn Tintel <stijn@linux-ipv6.be>2017-03-08 21:15:20 +0100
commitf82287cf5c1b2acd46feb52fb9b3cb3697e7086b (patch)
treeb51dc0c6f1eeb94b0cbd039b352d79c8a82d2736 /lang/lua-penlight
parent694e5a677cdacf0966d759deb75f03c0c927bd2a (diff)
treewide: use name in define and eval lines
For consistency, use full name instead of $(PKG_NAME) in define and eval lines for all packages. I've seen reviews that asked to do this before, and I am asking the same during reviews now. To avoid this in the future, fix this treewide so when people use existing packages as example, we will not have to request this change anymore. This makes all packages consistent with both LEDE and OpenWrt base repositories. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'lang/lua-penlight')
-rw-r--r--lang/lua-penlight/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/lua-penlight/Makefile b/lang/lua-penlight/Makefile
index 5c1b72a2a..de594ec12 100644
--- a/lang/lua-penlight/Makefile
+++ b/lang/lua-penlight/Makefile
@@ -19,7 +19,7 @@ PKG_LICENSE_FILES:=LICENSE.md
include $(INCLUDE_DIR)/package.mk
-define Package/$(PKG_NAME)
+define Package/lua-penlight
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
@@ -29,7 +29,7 @@ define Package/$(PKG_NAME)
MAINTAINER:= Karl Palsson <karlp@remake.is>
endef
-define Package/$(PKG_NAME)/description
+define Package/lua-penlight/description
It is often said of Lua that it does not include batteries.
Penlight is the batteries.
endef
@@ -38,9 +38,9 @@ define Build/Compile
echo "Nothing to compile, pure lua package"
endef
-define Package/$(PKG_NAME)/install
+define Package/lua-penlight/install
$(INSTALL_DIR) $(1)/usr/lib/lua
$(CP) $(PKG_BUILD_DIR)/lua/pl $(1)/usr/lib/lua
endef
-$(eval $(call BuildPackage,$(PKG_NAME)))
+$(eval $(call BuildPackage,lua-penlight))