Merge pull request #20731 from pprindeville/isc-dhcp-update-4.4.3-P1
[feed/packages.git] / utils / yq / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=yq
4 PKG_VERSION:=4.33.2
5 PKG_RELEASE:=1
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:=eea0435bef57a4523dbbe3680fafc321d821986a49a92af69b0c637a428d454d
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/v4
20 GO_PKG_LDFLAGS_X:=$(GO_PKG)/cmd.Version=$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23 include ../../lang/golang/golang-package.mk
24
25 define Package/yq
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Portable command-line YAML processor
29 URL:=https://mikefarah.gitbook.io/yq/
30 DEPENDS:=$(GO_ARCH_DEPENDS)
31 endef
32
33 define Package/yq/description
34 The aim of the project is to be the jq or sed of yaml files.
35 endef
36
37 $(eval $(call GoBinPackage,yq))
38 $(eval $(call BuildPackage,yq))