upwork: update to 5.3.3.871

This commit is contained in:
Eugen Zagorodniy 2020-02-16 06:04:37 +02:00 committed by Piraty
parent 5c30457b38
commit 6e78a3ef82
2 changed files with 19 additions and 15 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
/opt/upwork/upwork

View file

@ -1,33 +1,35 @@
# Template file for 'upwork' # Template file for 'upwork'
pkgname=upwork pkgname=upwork
version=5.1.0.562 version=5.3.3.871
revision=1 revision=1
_rawver=${version//./_} _rawver=${version//./_}
_hashver="f3wgs5ljinabm69t" _hashver="51d563431f844aff"
archs="x86_64" archs="x86_64"
depends="alsa-lib gtk+ GConf gdk-pixbuf nss libXtst libXScrnSaver" depends="alsa-lib gtk+ GConf gdk-pixbuf nss libXtst libXScrnSaver"
short_desc="Desktop Upwork app" short_desc="Desktop Upwork app"
maintainer="Arthur Evstifeev <mail@ap4y.me>" maintainer="Arthur Evstifeev <mail@ap4y.me>"
license="Proprietary" license="custom:Upwork"
homepage="https://upwork.com/"
distfiles="https://updates-desktopapp.upwork.com/binaries/v${_rawver}_${_hashver}/${pkgname}_${version}_amd64.deb
https://upwork.pactsafe.io/versions/5ab3efef63d65b6a18aab106.pdf>LICENSE.pdf"
checksum="53a8cf15610563475e45127522f230f4fcfdc7b70cf915e3d573845bad0c19fd
0949da5999c3b948bcc4165e6c55522915d9bab1790d27120eda0915aae143bb"
repository="nonfree" repository="nonfree"
restricted=yes restricted=yes
nopie=yes nopie=yes
homepage="https://upwork.com/"
distfiles="https://updates-desktopapp.upwork.com/binaries/v${_rawver}_${_hashver}/upwork_${version}_amd64.deb # Skip runtime dependenies check, otherwise NEEDED libGLESv2.so (which is bundled with the package)
https://upwork.pactsafe.io/versions/5ab3efef63d65b6a18aab106.pdf>LICENSE.pdf" # will trigger dependency on rpi-userland packages (makes no sense on x86_64).
checksum="af70dae3d1cd5910d3ab591201caf75b13758d12e487b44cd32452c305df68c0 skiprdeps="/opt/${pkgname}/libEGL.so"
0949da5999c3b948bcc4165e6c55522915d9bab1790d27120eda0915aae143bb"
do_extract() { do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/upwork_${version}_amd64.deb ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}_${version}_amd64.deb
tar xf data.tar.xz bsdtar xf data.tar.xz
} }
do_install() { do_install() {
vbin usr/bin/upwork vcopy opt opt
vinstall usr/share/applications/upwork.desktop 644 usr/share/applications vcopy usr usr
vinstall usr/share/menu/upwork 644 usr/share/menu vbin ${FILESDIR}/${pkgname}
vinstall usr/share/pixmaps/upwork.png 644 usr/share/pixmaps
vcopy usr/share/upwork usr/share
vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE.pdf vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE.pdf
} }