From ceda17dacb2365241613ef0c53f09d238b8ae6ea Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 6 Mar 2026 11:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9B=84=20Sync=202026-03-06=2011:03:18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua-maxminddb/Makefile | 43 ++++++++++++++++++++++++++++++++++++++++++ lua-periphery/Makefile | 40 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 lua-maxminddb/Makefile create mode 100644 lua-periphery/Makefile diff --git a/lua-maxminddb/Makefile b/lua-maxminddb/Makefile new file mode 100644 index 00000000..d3fa16d5 --- /dev/null +++ b/lua-maxminddb/Makefile @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-3.0-only +# +# Copyright (C) 2020 jerryk +# Copyright (C) 2021 ImmortalWrt.org + +include $(TOPDIR)/rules.mk + +PKG_NAME:=lua-maxminddb +PKG_VERSION:=0.2 +PKG_RELEASE:=1 + +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_MIRROR_HASH:=skip + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/lua-maxminddb + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=libmaxminddb bindings for lua + URL:=https://github.com/fabled/lua-maxminddb + DEPENDS:=+lua +libmaxminddb +endef + +TARGET_CFLAGS += $(FPIC) + +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)) diff --git a/lua-periphery/Makefile b/lua-periphery/Makefile new file mode 100644 index 00000000..c81fcd0e --- /dev/null +++ b/lua-periphery/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=lua-periphery +PKG_VERSION:=2.5.0 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/vsergeev/lua-periphery.git +PKG_SOURCE_VERSION:=e91d515ebbf04bd4cfc10a3f4c7e1f12736350af +PKG_MIRROR_HASH:=skip + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=Tianling Shen + +PKG_BUILD_PARALLEL:=1 +PKG_BUILD_FLAGS:=gc-sections + +include $(INCLUDE_DIR)/package.mk + +define Package/lua-periphery + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=A Lua library for peripheral I/O in Linux + URL:=https://github.com/vsergeev/lua-periphery + DEPENDS:=+liblua +endef + +define Package/lua-periphery/description + lua-periphery is a library for GPIO, LED, PWM, SPI, I2C, MMIO, and + Serial peripheral I/O interface access in userspace Linux. +endef + +define Package/lua-periphery/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(CP) $(PKG_BUILD_DIR)/periphery.so* $(1)/usr/lib/lua/ +endef + +$(eval $(call BuildPackage,lua-periphery))