# 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 " 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=596226d4f35d871f5dd8bdce1c2a5d00ca9ee76dcb0668a08a9e2ca64e53d11f 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 }