forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upwork-4.0.70.0.ebuild
49 lines (38 loc) · 1.1 KB
/
upwork-4.0.70.0.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit rpm eutils
# Binary only distribution
QA_PREBUILT="*"
DESCRIPTION="Project collaboration and tracking software for upwork.com"
HOMEPAGE="https://www.upwork.com/"
SRC_URI="amd64? ( http://updates.team.odesk.com/binaries/v4_0_70_0_bccbf5c8e0866/${PN}_x86_64.rpm -> ${P}_x86_64.rpm )
x86? ( http://updates.team.odesk.com/binaries/v4_0_70_0_bccbf5c8e0866/${PN}_i386.rpm -> ${P}_i386.rpm )
"
LICENSE="ODESK"
SLOT="0"
KEYWORDS="~amd64 ~x86"
S=${WORKDIR}
RDEPEND="
dev-libs/libgcrypt:11
media-libs/alsa-lib
sys-libs/libcap
virtual/udev
x11-libs/gtk+:2
x11-libs/gtkglext
"
src_prepare() {
epatch "${FILESDIR}/${PN}-desktop.patch"
}
src_install() {
# Wrapper to the real executable
dobin usr/bin/upwork
insinto /usr/share
doins -r usr/share/upwork
dosym /usr/lib/libudev.so /usr/share/upwork/libudev.so.0
# Make this executable because it's the real executable
fperms 0755 /usr/share/upwork/upwork
domenu usr/share/applications/upwork.desktop
doicon usr/share/pixmaps/upwork.png
}