void-packages/srcpkgs/restic/template
2025-04-19 14:31:15 -04:00

34 lines
1.1 KiB
Bash

# Template file for 'restic'
pkgname=restic
version=0.18.0
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=fc068d7fdd80dd6a968b57128d736b8c6147aa23bcba584c925eb73832f6523e
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
}