mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
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>
This commit is contained in:
+6
-6
@@ -32,7 +32,7 @@ PKG_CONFIG_DEPENDS := \
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/nls.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
define Package/mc
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=+glib2 +libncurses +libmount +MC_VFS:libssh2 $(LIBRPC_DEPENDS) $(ICONV_DEPENDS)
|
||||
@@ -41,11 +41,11 @@ define Package/$(PKG_NAME)
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/config
|
||||
define Package/mc/config
|
||||
source "$(SOURCE)/Config.in"
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
define Package/mc/description
|
||||
GNU Midnight Commander is a visual file manager.
|
||||
It's a feature rich full-screen text mode application that allows you to copy,
|
||||
move and delete files and whole directory trees, search for files and run commands in the subshell.
|
||||
@@ -98,7 +98,7 @@ CONFIGURE_ARGS += \
|
||||
--disable-vfs
|
||||
endif
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
define Package/mc/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mc $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/etc/mc
|
||||
@@ -119,9 +119,9 @@ endif
|
||||
$(INSTALL_DIR) $(1)/etc/mc/mcedit/Syntax
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
define Package/mc/conffiles
|
||||
/etc/mc/mc.menu
|
||||
/etc/mc/skins/default.ini
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
$(eval $(call BuildPackage,mc))
|
||||
|
||||
Reference in New Issue
Block a user