You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=syncthing
  3. PKG_VERSION:=1.12.1
  4. PKG_RELEASE:=0
  5. PKG_SOURCE:=syncthing-source-v$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://github.com/syncthing/syncthing/releases/download/v$(PKG_VERSION)
  7. PKG_HASH:=f636441137650316b83809c177efb4df73be024547e056ea03dcf0ed627d81c7
  8. PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/$(PKG_NAME)
  9. PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
  10. PKG_LICENSE:=MPL-2.0
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_CPE_ID:=cpe:/a:syncthing:syncthing
  13. PKG_BUILD_DEPENDS:=golang/host
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_USE_MIPS16:=0
  16. GO_PKG:=github.com/syncthing/syncthing/
  17. GO_PKG_BUILD_PKG:=github.com/syncthing/syncthing/cmd/syncthing/
  18. GO_PKG_INSTALL_EXTRA:=^gui/
  19. GO_PKG_LDFLAGS_X:=\
  20. github.com/syncthing/syncthing/lib/build.Version=v$(PKG_VERSION) \
  21. github.com/syncthing/syncthing/lib/build.Stamp=$(SOURCE_DATE_EPOCH) \
  22. github.com/syncthing/syncthing/lib/build.User=openwrt \
  23. github.com/syncthing/syncthing/lib/build.Host=openwrt \
  24. github.com/syncthing/syncthing/lib/build.Program=syncthing
  25. GO_PKG_TAGS:=noupgrade
  26. include $(INCLUDE_DIR)/package.mk
  27. include ../../lang/golang/golang-package.mk
  28. define Package/syncthing
  29. TITLE:=Continuous file synchronization program
  30. URL:=https://syncthing.net
  31. DEPENDS:=$(GO_ARCH_DEPENDS)
  32. SECTION:=utils
  33. CATEGORY:=Utilities
  34. USERID:=syncthing=499:syncthing=499
  35. endef
  36. define Package/syncthing/conffiles
  37. /etc/config/syncthing
  38. /etc/syncthing
  39. endef
  40. define Package/syncthing/description
  41. Syncthing replaces proprietary sync and cloud services with something
  42. open, trustworthy and decentralized. Your data is your data alone and
  43. you deserve to choose where it is stored, if it is shared with some
  44. third party and how it's transmitted over the Internet.
  45. endef
  46. define Package/syncthing/install
  47. $(call GoPackage/Package/Install/Bin,$(1))
  48. $(CP) ./files/* $(1)/
  49. endef
  50. $(eval $(call GoBinPackage,syncthing))
  51. $(eval $(call BuildPackage,syncthing))