summaryrefslogtreecommitdiff
path: root/xfce-extra/thunar-dropbox/thunar-dropbox-0.2.0.ebuild
blob: 3f148481bee40a25996b673e402e7fcc26f75076 (plain)
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
50
51
52
53
54
55
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
inherit eutils  gnome2-utils

DESCRIPTION="Plugin for Thunar that adds context-menu items for Dropbox"
HOMEPAGE="http://www.softwarebakery.com/maato/thunar-dropbox.html"
SRC_URI="http://www.softwarebakery.com/maato/files/${PN}/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

COMMON_DEPEND="dev-libs/glib:2
	xfce-base/thunar
"
DEPEND="${COMMON_DEPEND}
	virtual/pkgconfig
"
RDEPEND="${COMMON_DEPEND}
	net-misc/dropbox
"

src_prepare() {
	epatch "${FILESDIR}/${P}-wscript.patch"
}

src_configure() {
	python2 waf configure --prefix=/usr
}

src_compile() {
	python2 waf build
}

src_install() {
	python2 waf install --destdir="${D}"
}

pkg_preinst() {
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_icon_cache_update /usr/share/icons/hicolor
	gtk-update-icon-cache
}

pkg_postrm() {
	gnome2_icon_cache_update /usr/share/icons/hicolor
	gtk-update-icon-cache
}