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.

42 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=restic
  3. PKG_VERSION:=0.9.6
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/restic/restic/tar.gz/v${PKG_VERSION}?
  7. PKG_HASH:=1cc8655fa99f06e787871a9f8b5ceec283c856fa341a5b38824a0ca89420b0fe
  8. PKG_LICENSE:=BSD-2-Clause
  9. PKG_LICENSE_FILES:=LICENSE
  10. PKG_MAINTAINER:=Markus Weippert <markus@gekmihesg.de>
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/restic/restic/
  15. GO_PKG_BUILD_PKG:=github.com/restic/restic/cmd/restic/
  16. GO_PKG_LDFLAGS:=-s -w
  17. GO_PKG_LDFLAGS_X:=main.version=$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../lang/golang/golang-package.mk
  20. define Package/restic
  21. TITLE:=restic backup program
  22. URL:=http://github.com/restic/restic
  23. DEPENDS:=$(GO_ARCH_DEPENDS)
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. endef
  27. define Package/restic/description
  28. restic is a backup program that is fast, efficient and secure. It supports the
  29. three major operating systems (Linux, macOS, Windows) and a few smaller ones
  30. (FreeBSD, OpenBSD).
  31. endef
  32. $(eval $(call GoBinPackage,restic))
  33. $(eval $(call BuildPackage,restic))