syncthing: fixup version detection

This commit is contained in:
CN_SZTL 2020-03-24 20:45:14 +08:00
parent 9f28dde335
commit 9a242ce509
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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)