packages/lang/lua-openssl/Makefile
Yousong Zhou d03e32c513 treewide: fix missing/wrong MIRROR_HASH for sources from github
Some of them forgot to update MIRROR_HASH on version change, others
updated with wrong hash value.  The new values were generated from
tarballs prepared by the newly introduced github-tarball download
methoded and confirmed consistent with those from sources.openwrt.org

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-07-02 10:40:47 +08:00

43 lines
1.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.7.1
PKG_RELEASE:=1
PKG_MAINTAINER:=Amnon Paz <pazamnon@gmail.com>
PKG_LICENSE:=MIT
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_MIRROR_HASH:=225e3fe09226ff72968a7f36a33e207d27332107456a754abbaa59f99a3038f3
PKG_SOURCE_URL:=https://github.com/zhaozg/lua-openssl.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=b104bbe914d279276560f188854036075b99f724
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))