44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# Template file for 'anydesk'
|
|
pkgname=anydesk
|
|
version=6.0.1
|
|
revision=3
|
|
archs="i686 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_$XBPS_TARGET_MACHINE.rpm"
|
|
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ] ; then
|
|
checksum=df029878486944bf0400e90746fe738eee0fc3f849e7f47f19d432fcb357c03e
|
|
elif [ "${XBPS_TARGET_MACHINE}" = "i686" ]; then
|
|
checksum=b92a366a8233be44f556c81f274bdce3e527591987cc4c8d2b490fcd410305ed
|
|
fi
|
|
_eula_digest=bfc62609b48b12f2c8c904e5b01b378d099836317334c6a634b2447bbf52ddcf
|
|
|
|
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 '/Terms [&] Conditions/,/envelope-p/{/envelope-p/!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
|
|
}
|