syncthing: fixup version detection
This commit is contained in:
parent
9f28dde335
commit
9a242ce509
@ -9,6 +9,6 @@ include $(TOPDIR)/rules.mk
|
||||
LUCI_TITLE:=Qos over Nftables
|
||||
LUCI_DEPENDS:=+nft-qos
|
||||
|
||||
include ../../luci.mk
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
||||
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=syncthing
|
||||
PKG_VERSION:=1.4.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=syncthing-source-v$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/syncthing/syncthing/releases/download/v$(PKG_VERSION)
|
||||
@ -36,11 +36,12 @@ define Package/syncthing
|
||||
endef
|
||||
|
||||
GO_PKG_LDFLAGS:= -s -w
|
||||
GO_PKG_LDFLAGS_X:=\
|
||||
main.Version=v$(PKG_VERSION) \
|
||||
main.BuildUser=ctcgfw \
|
||||
main.BuildHost=project-openwrt \
|
||||
main.BuildStamp=$(SOURCE_DATE_EPOCH)
|
||||
GO_PKG_LDFLAGS_X:= \
|
||||
github.com/syncthing/syncthing/lib/build.Version=v$(PKG_VERSION) \
|
||||
github.com/syncthing/syncthing/lib/build.Stamp=$(SOURCE_DATE_EPOCH) \
|
||||
github.com/syncthing/syncthing/lib/build.User=ctcgfw \
|
||||
github.com/syncthing/syncthing/lib/build.Host=project-openwrt \
|
||||
github.com/syncthing/syncthing/lib/build.Program=syncthing
|
||||
|
||||
define Build/Compile
|
||||
$(call GoPackage/Build/Compile,-tags noupgrade)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user