void-packages/srcpkgs/upwork/template
2019-03-02 16:55:54 -03:00

33 lines
1.1 KiB
Bash

# Template file for 'upwork'
pkgname=upwork
version=5.1.0.562
revision=1
_rawver=${version//./_}
_hashver="f3wgs5ljinabm69t"
archs="x86_64"
depends="alsa-lib gtk+ GConf gdk-pixbuf nss libXtst libXScrnSaver"
short_desc="Desktop Upwork app"
maintainer="Arthur Evstifeev <mail@ap4y.me>"
license="Proprietary"
repository="nonfree"
restricted=yes
nopie=yes
homepage="https://upwork.com/"
distfiles="https://updates-desktopapp.upwork.com/binaries/v${_rawver}_${_hashver}/upwork_${version}_amd64.deb
https://upwork.pactsafe.io/versions/5ab3efef63d65b6a18aab106.pdf>LICENSE.pdf"
checksum="af70dae3d1cd5910d3ab591201caf75b13758d12e487b44cd32452c305df68c0
0949da5999c3b948bcc4165e6c55522915d9bab1790d27120eda0915aae143bb"
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/upwork_${version}_amd64.deb
tar xf data.tar.xz
}
do_install() {
vbin usr/bin/upwork
vinstall usr/share/applications/upwork.desktop 644 usr/share/applications
vinstall usr/share/menu/upwork 644 usr/share/menu
vinstall usr/share/pixmaps/upwork.png 644 usr/share/pixmaps
vcopy usr/share/upwork usr/share
vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE.pdf
}