From 440cac507b7c929545c9fb1be648c7ee90a366a1 Mon Sep 17 00:00:00 2001 From: action Date: Sat, 5 Sep 2026 11:12:16 +0800 Subject: [PATCH] update 2026-09-05 11:12:16 --- geo2txt/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 geo2txt/Makefile diff --git a/geo2txt/Makefile b/geo2txt/Makefile new file mode 100644 index 00000000..47d95415 --- /dev/null +++ b/geo2txt/Makefile @@ -0,0 +1,39 @@ +# +# Copyright (C) 2015-2016 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v3. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=geo2txt +PKG_VERSION:=1.0.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/sbwml/geo2txt/tar.gz/$(PKG_VERSION)? +PKG_HASH:=b777d9c67b36cd8ce68a0555200fae85751435c888364c921a361062ffee4409 + +PKG_LICENSE:=GPL-3.0 +PKG_LICENSE_FILE:=LICENSE +PKG_MAINTAINER:=sbwml + +include $(INCLUDE_DIR)/package.mk + +define Package/geo2txt + SECTION:=utils + CATEGORY:=Utilities + TITLE:=V2ray geosite & geoip unpacking CLI tool + URL:=https://github.com/sbwml/geo2txt +endef + +define Package/quickfile/description + A lightweight pure C utility to unpack v2ray geosite.dat and geoip.dat. +endef + +define Package/geo2txt/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/geo2txt $(1)/usr/bin/geo2txt +endef + +$(eval $(call BuildPackage,geo2txt))