void-packages/srcpkgs/qrcp/template
2024-11-27 21:59:12 +00:00

25 lines
903 B
Bash

# Template file for 'qrcp'
pkgname=qrcp
version=0.11.3
revision=1
build_style=go
build_helper=qemu
go_import_path=github.com/claudiodangelis/qrcp
go_ldflags="-X github.com/claudiodangelis/qrcp/version.version=${version}
-X github.com/claudiodangelis/qrcp/version.date=$(date -d@$SOURCE_DATE_EPOCH +%Y-%m-%dT%H:%M:%SZ)"
short_desc="Transfer files over wifi to mobile devices by scanning a QR code"
maintainer="meator <meator.dev@gmail.com>"
license="MIT"
homepage="https://qrcp.sh/"
changelog="https://github.com/claudiodangelis/qrcp/releases"
distfiles="https://github.com/claudiodangelis/qrcp/archive/refs/tags/${version}.tar.gz"
checksum=de6a9e29d7c71268e40452abf2f1f593d5d53baa34df5abcb7352ebfd72a952f
post_install() {
vlicense LICENSE
for shell in bash fish zsh; do
vtargetrun "${DESTDIR}/usr/bin/qrcp" completion "${shell}" > "qrcp.${shell}"
vcompletion "qrcp.${shell}" "${shell}"
done
}