void-packages/srcpkgs/wire-desktop/template
2019-06-14 18:53:29 +02:00

41 lines
1.2 KiB
Bash

# Template file for 'wire-desktop'
pkgname=wire-desktop
version=3.6.2885
revision=2
wrksrc="${pkgname}-linux-${version}"
hostmakedepends="nodejs yarn git"
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=524db450d41a2dc677b8450cdf4e13dcc753280b2f6565ed5e23e6f59c14bed4
nocross=yes
shlib_provides="libGLVESv2.so"
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="glibc artefacts are installed" ;;
i686*) broken="yarn" ;;
esac
pre_build() {
vsed -i '/node-addressbook/d' electron/package.json
yarn
yarn build:ts
}
do_build() {
npx grunt --target=dir linux-other
}
do_install() {
vmkdir usr/lib/wire-desktop
vcopy wrap/dist/linux-unpacked/* usr/lib/wire-desktop
vmkdir usr/bin
ln -sf /usr/lib/wire-desktop/wire-desktop ${DESTDIR}/usr/bin/
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
vlicense LICENSE
}