From 081637725ab7604208cc70e05cdc336076fc8c19 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Tue, 18 Feb 2020 16:31:53 +0800 Subject: [PATCH] lua-maxminddb: add package --- CONTRIBUTED.md | 3 +- package/ctcgfw/lua-maxminddb/Makefile | 54 +++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 package/ctcgfw/lua-maxminddb/Makefile diff --git a/CONTRIBUTED.md b/CONTRIBUTED.md index 93c79b95cb..8778300802 100644 --- a/CONTRIBUTED.md +++ b/CONTRIBUTED.md @@ -38,7 +38,8 @@ NanoPi support: [speedyworldclub/nlede](https://github.com/speedyworldclub/nlede luci-theme-opentomato source: [Leo-Jo-My/luci-theme-opentomato](https://github.com/Leo-Jo-My/luci-theme-opentomato).
luci-theme-opentomcat source: [Leo-Jo-My/luci-theme-opentomcat](https://github.com/Leo-Jo-My/luci-theme-opentomcat).
qntfs-driver source: [lbbboy/qntfs-driver](https://github.com/lbbboy/qntfs-driver).
-luci-theme-Butterfly source: [Leo-Jo-My/luci-theme-Butterfly](https://github.com/Leo-Jo-My/luci-theme-Butterfly). +luci-theme-Butterfly source: [Leo-Jo-My/luci-theme-Butterfly](https://github.com/Leo-Jo-My/luci-theme-Butterfly).
+lua-maxminddb source: [jerrykuku/lua-maxminddb](https://github.com/jerrykuku/lua-maxminddb). ## License ### Depending on their own License. diff --git a/package/ctcgfw/lua-maxminddb/Makefile b/package/ctcgfw/lua-maxminddb/Makefile new file mode 100644 index 0000000000..79b3b4b830 --- /dev/null +++ b/package/ctcgfw/lua-maxminddb/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2020 jerryk +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=lua-maxminddb +PKG_VERSION:=0.2 +PKG_RELEASE:=1 +PKG_MAINTAINER:=fabled +PKG_LICENSE:=MIT + +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_VERSION:=93da9f4e6c814c3a23044dd2cdd22d4a6b4f665b +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/lua-maxminddb + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=Lua-Maxminddb + 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 + + +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