Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restic: inital package of version 0.16.2 #5557

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions cross/restic/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PKG_NAME = restic
PKG_VERS = 0.16.2
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/restic/restic/releases/download/v$(PKG_VERS)
PKG_DIR = $(PKG_NAME)

BUILD_DEPENDS = native/go

HOMEPAGE = https://restic.net/
COMMENT = Restic is a fast and secure backup program.
LICENSE = BSD 2-Clause License

POST_EXTRACT_TARGET = restic_post_extract
COMPILE_TARGET = restic_compile

GO_SRC_DIR = $(EXTRACT_PATH)/$(PKG_NAME)
GO_BIN_DIR = $(GO_SRC_DIR)/$(PKG_NAME)

include ../../mk/spksrc.cross-go.mk

BUILD_ARGS = --goos $(GOOS) --goarch $(GO_ARCH)
ifdef $(GOARM)
BUILD_ARGS += --goarm $(GOARM)
endif

.PHONY: restic_post_extract
restic_post_extract:
cd $(EXTRACT_PATH) && [ -d $(PKG_DIR)-$(PKG_VERS) ] && mv $(PKG_DIR)-$(PKG_VERS) $(PKG_NAME)

restic_compile:
cd $(GO_SRC_DIR) && env $(filter-out GOARCH=%, $(ENV)) go run build.go $(BUILD_ARGS)
1 change: 1 addition & 0 deletions cross/restic/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin:bin/restic
3 changes: 3 additions & 0 deletions cross/restic/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
restic-0.16.2.tar.gz SHA1 3934d155ebd27f6647aaefe083697bc13ed507a9
restic-0.16.2.tar.gz SHA256 88165b5b89b6064df37a9964d660f40ac62db51d6536e459db9aaea6f2b2fc11
restic-0.16.2.tar.gz MD5 9f1b38964573b0b0a8e158a309b657d9
21 changes: 21 additions & 0 deletions spk/restic/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SPK_NAME = restic
SPK_VERS = 0.16.2
SPK_REV = 1
SPK_ICON = src/logo.png

DEPENDS = cross/$(SPK_NAME)

MAINTAINER = fgma
DESCRIPTION = Restic is a fast and secure backup program.
DISPLAY_NAME = restic
STARTABLE = no

CHANGELOG = "Initial release."

HOMEPAGE = https://restic.net/
LICENSE = BSD 2-Clause License
LICENSE_FILE = $(WORK_DIR)/$(SPK_NAME)/LICENSE

SPK_COMMANDS = bin/restic

include ../../mk/spksrc.spk.mk
Binary file added spk/restic/src/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.