# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit desktop pax-utils rpm # Binary only distribution QA_PREBUILT="*" DESCRIPTION="Project collaboration and tracking software for upwork.com" HOMEPAGE="https://www.upwork.com/" SRC_URI=" amd64? ( https://updates-desktopapp.upwork.com/binaries/v5_3_3_848_ciy2bosj7ts6feza/upwork-5.3.3.848-1fc24.x86_64.rpm -> ${P}_x86_64.rpm ) x86? ( https://updates-desktopapp.upwork.com/binaries/v5_3_3_848_ciy2bosj7ts6feza/upwork-5.3.3.848-1fc24.i386.rpm -> ${P}_i386.rpm ) " #amd64? ( https://updates-desktopapp.upwork.com/binaries/v5_3_3_848_ciy2bosj7ts6feza/upwork_5.3.3.848_amd64.deb -> ${P}_x86_64.deb ) #x86? ( https://updates-desktopapp.upwork.com/binaries/v5_3_3_848_ciy2bosj7ts6feza/upwork_5.3.3.848_i386.deb -> ${P}_i386.deb ) LICENSE="ODESK" SLOT="0" KEYWORDS="~amd64 ~x86" S=${WORKDIR} PATCHES=( "${FILESDIR}/${PN}-desktop-r1.patch" ) DEPEND="dev-util/patchelf" RDEPEND=" app-arch/dpkg dev-libs/expat dev-libs/nspr dev-libs/nss gnome-base/gconf media-libs/alsa-lib media-libs/freetype sys-apps/dbus sys-libs/libcap x11-libs/gtk+:2[cups] x11-libs/gtkglext " #src_unpack() { # echo "unpacking ${A}" # dpkg-deb --extract "${DISTDIR}/${A}" . || die "Could not unpack ${A}" #} src_install() { pax-mark m usr/share/upwork/upwork dobin usr/bin/upwork insinto /usr/share doins -r usr/share/upwork fperms 0755 /usr/share/upwork/upwork domenu usr/share/applications/upwork.desktop doicon usr/share/pixmaps/upwork.png }