From 3228765548b04f4d0ab77efc3aeb7c5d6649e900 Mon Sep 17 00:00:00 2001 From: sirpdboy Date: Thu, 17 Jun 2021 13:58:52 +0800 Subject: [PATCH] uplua-maxminddb 1.2 --- lua-maxminddb/Makefile | 39 ++++++++++++++------------------------- 1 file changed, 14 insertions(+), 25 deletions(-) diff --git a/lua-maxminddb/Makefile b/lua-maxminddb/Makefile index 5241e56..363d254 100644 --- a/lua-maxminddb/Makefile +++ b/lua-maxminddb/Makefile @@ -1,55 +1,44 @@ +# SPDX-License-Identifier: GPL-3.0-only # # Copyright (C) 2020 jerryk -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# +# Copyright (C) 2021 ImmortalWrt.org include $(TOPDIR)/rules.mk PKG_NAME:=lua-maxminddb PKG_VERSION:=0.2 -PKG_RELEASE:=2 -PKG_MAINTAINER:=fabled -PKG_LICENSE:=MIT +PKG_RELEASE:=$(AUTORELEASE) -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_MIRROR_HASH:=f9b870968f75c8020a311cca2482139ac8b2b55d4f1b5b0ce00f7844b083c866 -PKG_SOURCE_URL:=https://github.com/fabled/lua-maxminddb.git PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/fabled/lua-maxminddb.git +PKG_SOURCE_DATE:=2019-03-14 PKG_SOURCE_VERSION:=93da9f4e6c814c3a23044dd2cdd22d4a6b4f665b -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_MIRROR_HASH:=b99ef18516b705b3e73b15a9d5ddc99add359299b52639fe3c81dd761591d9d9 -PKG_USR_NINJA:=0 -PKG_INSTALL:=1 +PKG_LICENSE:=MIT +PKG_LICENSE_FILE:=LICENSE +PKG_MAINTAINER:=fabled + +PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/cmake.mk define Package/lua-maxminddb SUBMENU:=Lua SECTION:=lang CATEGORY:=Languages - TITLE:=Lua-Maxminddb + TITLE:=libmaxminddb bindings for lua URL:=https://github.com/jerrykuku/lua-maxminddb DEPENDS:=+lua +libmaxminddb endef -define Package/lua-maxminddb/description - libmaxminddb bindings for lua -endef - TARGET_CFLAGS += $(FPIC) -# add make variable overrides here -MAKE_FLAGS += - -define Build/Configure -endef +MAKE_VARS += LUA_PKG=lua define Package/lua-maxminddb/install $(INSTALL_DIR) $(1)/usr/lib/lua $(INSTALL_BIN) $(PKG_BUILD_DIR)/maxminddb.so $(1)/usr/lib/lua/ endef -$(eval $(call BuildPackage,lua-maxminddb)) \ No newline at end of file +$(eval $(call BuildPackage,lua-maxminddb))