From d6f94d3eef630e397efce025355d5d85827b95a9 Mon Sep 17 00:00:00 2001 From: SakuraFallingMad <31793080+SakuraFallingMad@users.noreply.github.com> Date: Fri, 29 Nov 2024 09:21:31 +0800 Subject: [PATCH] geoview: Add package Signed-off-by: SakuraFallingMad <31793080+SakuraFallingMad@users.noreply.github.com> (cherry picked from commit 265b5fa2556104f7cd0847e1f6bbee8df78d4f00) --- net/geoview/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 net/geoview/Makefile diff --git a/net/geoview/Makefile b/net/geoview/Makefile new file mode 100644 index 0000000000..7c2d820dff --- /dev/null +++ b/net/geoview/Makefile @@ -0,0 +1,44 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=geoview +PKG_VERSION:=0.0.6 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/snowie2000/geoview/tar.gz/$(PKG_VERSION)? +PKG_HASH:=f0da0db41a886d5a3ad34c0ad7d50eedc32b2e555ca42b65f7117d5cad60fc98 + +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=snowie2000 + +PKG_BUILD_DEPENDS:=golang/host +PKG_BUILD_PARALLEL:=1 +PKG_BUILD_FLAGS:=no-mips16 + +GO_PKG:=github.com/snowie2000/geoview + +include $(INCLUDE_DIR)/package.mk +include ../../lang/golang/golang-package.mk + +define Package/geoview + SECTION:=net + CATEGORY:=Network + SUBMENU:=Web Servers/Proxies + TITLE:=A geofile toolkit + URL:=https://github.com/snowie2000/geoview + DEPENDS:=$(GO_ARCH_DEPENDS) +endef + +define Package/geoview/description +geoview is a handy tool to extract useful information from geo* files. +endef + +define Package/geoview/install + $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/geoview $(1)/usr/bin/ +endef + +$(eval $(call GoBinPackage,geoview)) +$(eval $(call BuildPackage,geoview))