geoview: update to latest version
This commit is contained in:
parent
15a748f211
commit
ed4d58ae9c
@ -14,45 +14,35 @@ PKG_MAINTAINER:=snowie2000
|
|||||||
|
|
||||||
PKG_BUILD_DEPENDS:=golang/host
|
PKG_BUILD_DEPENDS:=golang/host
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_BUILD_FLAGS:=no-mips16
|
|
||||||
PKG_USE_MIPS16:=0
|
PKG_USE_MIPS16:=0
|
||||||
|
PKG_BUILD_FLAGS:=no-mips16
|
||||||
|
|
||||||
GO_PKG:=github.com/snowie2000/geoview
|
GO_PKG:=github.com/snowie2000/geoview
|
||||||
GO_PKG_BUILD_PKG:=github.com/snowie2000/geoview
|
GO_PKG_BUILD_PKG:=$(GO_PKG)
|
||||||
|
|
||||||
GO_PKG_LDFLAGS:=-s -w
|
GO_PKG_LDFLAGS:=-s -w
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
|
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
|
||||||
|
|
||||||
define geoview/templates
|
define Package/geoview
|
||||||
define Package/$(1)
|
TITLE:=A geofile toolkit
|
||||||
TITLE:=A geofile toolkit ($(1))
|
URL:=https://github.com/snowie2000/geoview
|
||||||
URL:=https://github.com/snowie2000/geoview
|
SECTION:=net
|
||||||
SECTION:=net
|
CATEGORY:=Network
|
||||||
CATEGORY:=Network
|
SUBMENU:=IP Addresses and Names
|
||||||
SUBMENU:=Web Servers/Proxies
|
DEPENDS+= $(GO_ARCH_DEPENDS)
|
||||||
DEPENDS:=$$(GO_ARCH_DEPENDS)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/$(1)/description
|
|
||||||
geoview is a handy tool to extract useful information from geo* files.
|
|
||||||
|
|
||||||
This package contains the $(1).
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/$(1)/install
|
|
||||||
$$(call GoPackage/Package/Install/Bin,$$(PKG_INSTALL_DIR))
|
|
||||||
|
|
||||||
$$(INSTALL_DIR) $$(1)/usr/bin
|
|
||||||
$$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/
|
|
||||||
endef
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOVIEW_COMPONENTS:=geoview
|
define Package/geoview/description
|
||||||
|
geoview is a handy tool to extract useful information from geo* files.
|
||||||
|
endef
|
||||||
|
|
||||||
$(foreach component,$(GEOVIEW_COMPONENTS), \
|
define Package/geoview/install
|
||||||
$(eval $(call geoview/templates,$(component))) \
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
||||||
$(eval $(call GoBinPackage,$(component))) \
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(eval $(call BuildPackage,$(component))) \
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/geoview $(1)/usr/bin/
|
||||||
)
|
endef
|
||||||
|
|
||||||
|
$(eval $(call GoBinPackage,geoview))
|
||||||
|
$(eval $(call BuildPackage,geoview))
|
Loading…
Reference in New Issue
Block a user