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>
42 lines
1 KiB
Makefile
42 lines
1 KiB
Makefile
#
|
|
# Copyright (C) 2016 Amnon Paz <pazamnon@gmail.com>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=lua-openssl
|
|
PKG_VERSION:=0.6.0
|
|
PKG_RELEASE:=1
|
|
PKG_MAINTAINER:=Amnon Paz <pazamnon@gmail.com>
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=https://github.com/zhaozg/lua-openssl.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=1b950e6ff8617205cda1a1b612637ef21b9daf96
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/lua-openssl
|
|
SUBMENU:=Lua
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=Lua openSSL binding
|
|
URL:=http://github.com/zhaozg/lua-openssl
|
|
DEPENDS:=+lua +libopenssl +librt
|
|
endef
|
|
|
|
define Package/lua-openssl/description
|
|
A free, MIT-licensed OpenSSL binding for Lua.
|
|
endef
|
|
|
|
define Package/lua-openssl/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openssl.so $(1)/usr/lib/lua/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,lua-openssl))
|