b59a89b4ee6fd0a5c1b2fd4d33520d96bd52c5e1
[feed/packages.git] / utils / restic / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=restic
4 PKG_VERSION:=0.16.3
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:=a94d6c1feb0034fcff3e8b4f2d65c0678f906fc21a1cf2d435341f69e7e7af52
10
11 PKG_LICENSE:=BSD-2-Clause
12 PKG_LICENSE_FILES:=LICENSE
13 PKG_MAINTAINER:=Tom Stöveken <tom@naaa.de>
14
15 PKG_BUILD_DEPENDS:=golang/host
16 PKG_BUILD_PARALLEL:=1
17 PKG_BUILD_FLAGS:=no-mips16
18
19 GO_PKG:=github.com/restic/restic/
20 GO_PKG_BUILD_PKG:=github.com/restic/restic/cmd/restic/
21 GO_PKG_LDFLAGS_X:=main.version=$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24 include ../../lang/golang/golang-package.mk
25
26 define Package/restic
27 TITLE:=restic backup program
28 URL:=http://github.com/restic/restic
29 DEPENDS:=$(GO_ARCH_DEPENDS)
30 SECTION:=utils
31 CATEGORY:=Utilities
32 endef
33
34 define Package/restic/description
35 restic is a backup program that is fast, efficient and secure. It supports the
36 three major operating systems (Linux, macOS, Windows) and a few smaller ones
37 (FreeBSD, OpenBSD).
38 endef
39
40 $(eval $(call GoBinPackage,restic))
41 $(eval $(call BuildPackage,restic))