void-packages/srcpkgs/anydesk/template
2021-11-20 18:54:13 -03:00

40 lines
1.1 KiB
Bash

# Template file for 'anydesk'
pkgname=anydesk
version=6.1.1
revision=1
archs="x86_64"
create_wrksrc=yes
hostmakedepends="patchelf rpmextract w3m"
short_desc="Fast remote desktop application"
maintainer="mobinmob <mobinmob@disroot.org>"
license="custom:Proprietary"
#Free for personal use. Terms and conditions:https://anydesk.com/en/terms
homepage="https://anydesk.com/remote-desktop"
nopie=yes
restricted=yes
distfiles="https://download.anydesk.com/linux/anydesk_$version-1_x86_64.rpm"
checksum=93f8ffb2ec46b7601be7682a4096a23ac19768bc5bcd88afb28a88c90f38867a
_eula_digest=cf42c51d94d40c5890b103a1b2c5b62b5faad7af1e14933cab98dea8066175e8
post_extract() {
$XBPS_FETCH_CMD -o eula.html https://anydesk.com/en/terms
< eula.html w3m -dump -I utf-8 -T text/html |
sed -n '/envelope.p/q;/Terms [&] Conditions/,$p' >eula.txt
filesum="$($XBPS_DIGEST_CMD eula.txt)"
if [ "$filesum" != $_eula_digest ]; then
msg_error "EULA changed, new digest: $filesum\n"
fi
}
do_build() {
patchelf --remove-needed libpangox-1.0.so.0 usr/bin/anydesk
}
do_install() {
vcopy usr/share usr
vbin usr/bin/anydesk
vlicense eula.txt
}