38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'wire-desktop'
|
|
pkgname=wire-desktop
|
|
version=3.34.3307
|
|
revision=1
|
|
hostmakedepends="nodejs yarn git"
|
|
depends="electron24"
|
|
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=f2c267c061ba4afdb744c8abf0660d9129eb165e31c9721a30bf3821c6ab74c7
|
|
|
|
case "$XBPS_MACHINE" in
|
|
x86_64*|i686*) ;;
|
|
*) broken="oof" ;;
|
|
esac
|
|
|
|
do_build() {
|
|
yarn
|
|
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() {
|
|
cat <<-EOF > "wire-desktop.sh"
|
|
#!/bin/sh
|
|
exec electron24 "/usr/lib/wire-desktop/app.asar" "\$@"
|
|
EOF
|
|
vbin wire-desktop.sh wire-desktop
|
|
vinstall wrap/dist/linux-unpacked/resources/app.asar 644 usr/lib/wire-desktop
|
|
vinstall resources/icons/256x256.png 644 \
|
|
usr/share/icons/hicolor/256x256/apps wire-desktop.png
|
|
vinstall resources/icons/32x32.png 644 \
|
|
usr/share/icons/hicolor/32x32/apps wire-desktop.png
|
|
vinstall wire-desktop.desktop 644 usr/share/applications
|
|
}
|