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