35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'restic'
|
|
pkgname=restic
|
|
version=0.17.3
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/restic/restic
|
|
go_package="${go_import_path}/cmd/restic"
|
|
go_ldflags="-X 'main.version=${version} (Void Linux)'"
|
|
checkdepends="tar python3"
|
|
short_desc="Backup solution written in Go"
|
|
maintainer="Florian Eich <flrn@nrmncr.net>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://restic.net/"
|
|
changelog="https://raw.githubusercontent.com/restic/restic/master/CHANGELOG.md"
|
|
distfiles="https://github.com/restic/restic/releases/download/v${version}/restic-${version}.tar.gz"
|
|
checksum=bf0dd73edfae531c24070e2e7833938613f7b179ed165e6b681098edfdf286c8
|
|
|
|
if [ "${XBPS_BUILD_ENVIRONMENT}" = "void-packages-ci" ]; then
|
|
make_check_args="-skip (^TestMount$|^TestMountSameTimestamps$|^TestRestoreWithPermissionFailure$"
|
|
make_check_args+="|^TestRestoreLocalLayout$|^TestCheckRestoreNoLock$|^TestBackupErrors$"
|
|
make_check_args+="|^TestArchiverErrorReporting$|^TestScannerError$)"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
|
|
for f in doc/man/*; do
|
|
vman $f
|
|
done
|
|
|
|
vcompletion doc/fish-completion.fish fish
|
|
vcompletion doc/bash-completion.sh bash
|
|
vcompletion doc/zsh-completion.zsh zsh
|
|
}
|