From dc3afcfe26db3bc48bb7fbce2de3e0c4848f7174 Mon Sep 17 00:00:00 2001 From: lz-coder Date: Mon, 2 Jan 2023 21:45:54 -0300 Subject: [PATCH] upwork: update to 5.8.0.24. --- srcpkgs/upwork/template | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/srcpkgs/upwork/template b/srcpkgs/upwork/template index ef8a196d7dfd..452519a9ac16 100644 --- a/srcpkgs/upwork/template +++ b/srcpkgs/upwork/template @@ -1,19 +1,19 @@ # Template file for 'upwork' pkgname=upwork -version=5.6.10.0 +version=5.8.0.24 revision=1 _rawver=${version//./_} -_hashver="b124e6f3a4944b32" +_hashver="aef0dc8c37cf46a8" archs="x86_64" +makedepends="curl" depends="alsa-lib gtk+ GConf gdk-pixbuf nss libXtst libXScrnSaver" short_desc="Desktop Upwork app" maintainer="Arthur Evstifeev " license="custom:Upwork" homepage="https://upwork.com/" -distfiles="https://upwork-usw2-desktopapp.upwork.com/binaries/v${_rawver}_${_hashver}/${pkgname}_${version}_amd64.deb - https://upwork.pactsafe.io/versions/5ab3efef63d65b6a18aab106.pdf>LICENSE.pdf" -checksum="fd201ce817abe32e1b582bb4b55fef85ac8132806f5ddf0548fd25bbfd48833c - 0949da5999c3b948bcc4165e6c55522915d9bab1790d27120eda0915aae143bb" +distfiles="https://upwork-usw2-desktopapp.upwork.com/binaries/v${_rawver}_${_hashver}/${pkgname}_${version}_amd64.deb" +_licensefile="https://upwork.pactsafe.io/versions/5ab3efef63d65b6a18aab106.pdf" +#checksum="fd201ce817abe32e1b582bb4b55fef85ac8132806f5ddf0548fd25bbfd48833c" repository="nonfree" restricted=yes nopie=yes @@ -22,14 +22,19 @@ nopie=yes # will trigger dependency on rpi-userland packages (makes no sense on x86_64). skiprdeps="/opt/${pkgname^}/libEGL.so" +do_fetch() { + curl -LO --tlsv1.3 -H "User-Agent: Mozilla/5.0 (x11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0" ${distfiles} + curl ${_licensefile} > "LICENSE.pdf" +} + do_extract() { - ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}_${version}_amd64.deb + ar x ${XBPS_BUILDDIR}/${pkgname}_${version}_amd64.deb bsdtar xf data.tar.xz } do_install() { - vcopy opt opt - vcopy usr usr + vcopy opt / + vcopy usr / vbin ${FILESDIR}/${pkgname} - vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE.pdf + vlicense ${XBPS_BUILDDIR}/LICENSE.pdf }