void-packages/srcpkgs/keybase/template
Đoàn Trần Công Danh 5516bc2fa2 keybase: use hand-generated tarball
GitHub tarballs can be changed at anytime, which renders GitHub
auto-generated tarball invalid at sometime [1]

Use keybase manual generated tarball that is verified with their code
signing key [2]

[1] https://github.com/keybase/client/issues/10800
[2] https://keybase.io/docs/server_security/code_signing_key.asc
2020-07-13 14:23:51 -04:00

39 lines
1.1 KiB
Bash

# Template file for 'keybase'
pkgname=keybase
version=5.5.1
revision=1
wrksrc="client-v${version}"
build_style=go
go_import_path="github.com/keybase/client"
go_package="${go_import_path}/go/keybase
${go_import_path}/go/kbfs/kbfsfuse
${go_import_path}/go/kbfs/kbfsgit/git-remote-keybase
${go_import_path}/go/kbfs/kbfstool ${go_import_path}/go/kbfs/redirector"
go_build_tags="production"
hostmakedepends="git"
depends="gnupg2"
short_desc="Client for keybase.io"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://keybase.io/"
distfiles="https://github.com/keybase/client/releases/download/v$version/keybase-v$version.tar.xz"
checksum=a70abf39c68cef1effccf4b9b9b1ed2e9cad20ab4f6c4b66160b610eca1ec874
post_install() {
vlicense LICENSE
}
kbfs_package() {
depends="keybase fuse"
short_desc="Keybase Filesystem"
pkg_install() {
vmove usr/bin/redirector
mv ${PKGDESTDIR}/usr/bin/redirector ${PKGDESTDIR}/usr/bin/keybase-redirector
# setuid
chmod 4755 ${PKGDESTDIR}/usr/bin/keybase-redirector
vmove usr/bin/kbfsfuse
vmove usr/bin/kbfstool
vmove usr/bin/git-remote-keybase
}
}