parent
adcdab0a2d
commit
a43d951ab1
|
@ -0,0 +1,52 @@
|
|||
# Template file for 'keybase-destkop'
|
||||
pkgname=keybase-desktop
|
||||
version=2.6.2
|
||||
revision=1
|
||||
wrksrc="client-${version}"
|
||||
hostmakedepends="git nodejs-lts yarn"
|
||||
depends="keybase kbfs"
|
||||
short_desc="Keybase desktop client"
|
||||
maintainer="Dominic Monroe <monroef4@googlemail.com>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://keybase.io"
|
||||
distfiles="https://github.com/keybase/client/archive/v${version}.tar.gz"
|
||||
checksum=79e72947908b1e7983ab2395d06d66c8ac93bebd28850674929fdc41690d0e15
|
||||
nostrip_files="Keybase"
|
||||
|
||||
case "${XBPS_TARGET_MACHINE}" in
|
||||
x86_64*) _target="x64";;
|
||||
i686*) _target="ia32";;
|
||||
*) broken="This architecture is not currently supported by Keybase's Electron builds";;
|
||||
esac
|
||||
|
||||
do_build() {
|
||||
cd "shared"
|
||||
# Workaround from keybase's own build_binaries.sh
|
||||
export NODE_ENV=development
|
||||
export KEYBASE_SKIP_DEV_TOOLS=1
|
||||
|
||||
yarn install --pure-lockfile --ignore-engines
|
||||
|
||||
unset KEYBASE_SKIP_DEV_TOOLS
|
||||
export NODE_ENV=production
|
||||
|
||||
yarn run package -- --platform linux --arch "${_target}" --appVersion "$version"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vmkdir opt/keybase/
|
||||
vcopy shared/desktop/release/linux-${_target}/Keybase-linux-${_target}/* opt/keybase
|
||||
|
||||
vcopy packaging/linux/crypto_squirrel.txt /opt/keybase
|
||||
vinstall packaging/linux/keybase.desktop 0644 usr/share/applications
|
||||
|
||||
local icon_size icon_dir
|
||||
for icon_size in 16 32 128 256 512 ; do
|
||||
icon_dir="usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
|
||||
vmkdir "$icon_dir"
|
||||
vinstall "media/icons/Keybase.iconset/icon_${icon_size}x${icon_size}.png" 644 "$icon_dir/keybase.png"
|
||||
done
|
||||
|
||||
vbin packaging/linux/run_keybase
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
Reference in New Issue