Merge pull request #16364 from stintel/mtools
[feed/packages.git] / utils / yq / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=yq
4 PKG_VERSION:=4.13.0
5 PKG_RELEASE:=$(AUTORELEASE)
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=https://codeload.github.com/mikefarah/yq/tar.gz/v$(PKG_VERSION)?
9 PKG_HASH:=37c48c300f64c191f7b7e84d9002f6cba464c9437c79a367affe5b2d85f8fd3b
10
11 PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
12 PKG_LICENSE:=MIT
13 PKG_LICENSE_FILES:=LICENSE
14
15 PKG_BUILD_DEPENDS:=golang/host
16 PKG_BUILD_PARALLEL:=1
17 PKG_USE_MIPS16:=0
18
19 GO_PKG:=github.com/mikefarah/yq
20
21 include $(INCLUDE_DIR)/package.mk
22 include ../../lang/golang/golang-package.mk
23
24 define Package/yq
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=Portable command-line YAML processor
28 URL:=https://mikefarah.gitbook.io/yq/
29 DEPENDS:=$(GO_ARCH_DEPENDS)
30 endef
31
32 define Package/yq/description
33 The aim of the project is to be the jq or sed of yaml files.
34 endef
35
36 $(eval $(call GoBinPackage,yq))
37 $(eval $(call BuildPackage,yq))