41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'anydesk'
|
|
pkgname=anydesk
|
|
version=6.1.0
|
|
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=35772d898afa8cba0f410775fdd7e1e8e7b753130c906db94801895c0ea74754
|
|
|
|
_eula_digest=f6386c15e187b6eac0ccd2564d3a873ae07d4b46a6b61dda13464caf5d54a319
|
|
|
|
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
|
|
}
|