44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# Template file for 'wire-desktop'
|
|
pkgname=wire-desktop
|
|
version=3.29.2997
|
|
revision=1
|
|
hostmakedepends="nodejs yarn git"
|
|
depends="electron19"
|
|
short_desc="Wire for desktop"
|
|
maintainer="Young Jin Park <youngjinpark20@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://wire.com"
|
|
distfiles="https://github.com/wireapp/wire-desktop/archive/linux/${version}.tar.gz"
|
|
checksum=0b714b661827a73bf91371766b706a049ae8347c9cf3379d50b7f323efaeb47a
|
|
|
|
case "$XBPS_MACHINE" in
|
|
x86_64*|i686*) ;;
|
|
*) broken="oof" ;;
|
|
esac
|
|
|
|
pre_build() {
|
|
yarn
|
|
}
|
|
|
|
do_build() {
|
|
LINUX_TARGET=dir yarn build:linux
|
|
npx ts-node -P tsconfig.bin.json ./bin/build-tools/build-linux-desktop-file.ts > wire-desktop.desktop
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/lib/wire-desktop
|
|
vinstall wrap/dist/linux-unpacked/resources/app.asar 644 usr/lib/wire-desktop
|
|
vmkdir usr/bin
|
|
cat << EOF > "wire-desktop.sh"
|
|
#!/bin/sh
|
|
exec electron19 "/usr/lib/wire-desktop/app.asar" "\$@"
|
|
EOF
|
|
vbin wire-desktop.sh wire-desktop
|
|
vmkdir usr/share/icons/hicolor/256x256/apps
|
|
vcopy resources/icons/256x256.png usr/share/icons/hicolor/256x256/apps/wire-desktop.png
|
|
vmkdir usr/share/icons/hicolor/32x32/apps
|
|
vcopy resources/icons/32x32.png usr/share/icons/hicolor/32x32/apps/wire-desktop.png
|
|
vmkdir usr/share/applications
|
|
vcopy wire-desktop.desktop usr/share/applications/wire-desktop.desktop
|
|
}
|