source: app-backup/insync/insync-1.4.3.37063.ebuild @ f3987e6

Revision f3987e6, 2.1 KB checked in by Mario Fetka <mario.fetka@…>, 10 months ago (diff)

Bump

  • Property mode set to 100644
Line 
1# Copyright 1999-2017 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5EAPI=5
6
7DESCRIPTION="Advanced cross-platform Google Drive client"
8HOMEPAGE="https://www.insynchq.com/"
9MODPV="1.3.12.36116"
10SRC_URI="
11        x86?      ( http://s.insynchq.com/builds/insync_${PV}-trusty_i386.deb )
12        amd64?    ( http://s.insynchq.com/builds/insync_${PV}-trusty_amd64.deb )
13        nautilus? ( http://s.insynchq.com/builds/insync-nautilus_${MODPV}-precise_all.deb )
14        dolphin?  ( http://s.insynchq.com/builds/insync-dolphin_${MODPV}-precise_all.deb )
15        thunar?   ( http://s.insynchq.com/builds/insync-thunar_${MODPV}-precise_all.deb )
16        nemo?     ( http://s.insynchq.com/builds/insync-nemo_${MODPV}-precise_all.deb )
17        caja?     ( http://s.insynchq.com/builds/insync-caja_${MODPV}-precise_all.deb )"
18
19SLOT="0"
20KEYWORDS="-* ~x86 ~amd64"
21DEPEND=""
22RDEPEND="${DEPEND}
23        nautilus? ( dev-python/nautilus-python )
24        dolphin? ( kde-apps/dolphin )
25        thunar? ( dev-python/thunarx-python )"
26IUSE="nautilus dolphin thunar caja nemo"
27
28src_unpack() {
29        elog "If this fails with a deb2targz error, see"
30        elog "https://github.com/mrpdaemon/gentoo-overlay/issues/4"
31        mkdir "${S}"
32        cd "${S}"
33
34        if use amd64 ; then
35                unpack insync_${PV}-trusty_amd64.deb
36        else
37                unpack insync_${PV}-trusty_i386.deb
38        fi
39
40        unpack ./data.tar.gz
41
42        if use nautilus ; then
43                unpack insync-nautilus_${MODPV}-precise_all.deb
44        elif use dolphin ; then
45                unpack insync-dolphin_${MODPV}-precise_all.deb
46        elif use thunar ; then
47                unpack insync-thunar_${MODPV}-precise_all.deb
48        elif use nemo ; then
49                unpack insync-nemo_${MODPV}-precise_all.deb
50        elif use caja ; then
51                unpack insync-caja_${MODPV}-precise_all.deb
52        fi
53
54        unpack ./data.tar.gz
55}
56
57src_install() {
58        cp -pPR "${S}"/usr "${D}"/ || die "Installation failed"
59
60        echo "SEARCH_DIRS_MASK=\"/usr/lib*/insync\"" > "${T}/70${PN}" || die
61        insinto "/etc/revdep-rebuild" && doins "${T}/70${PN}" || die
62}
63
64pkg_postinst() {
65        elog "To automatically start insync add 'insync' to your session"
66        elog "startup scripts. GNOME users can also choose to enable"
67        elog "the insync extension via gnome-tweak-tool."
68}
Note: See TracBrowser for help on using the repository browser.