blob: 2d96be124bbd12c59958b618e318e2f10cfa45e5 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit rpm
DESCRIPTION="Advanced cross-platform Google Drive client"
HOMEPAGE="https://www.insynchq.com/"
MAGIC="36049"
MAIN_INSTALLER_STRING="http://s.insynchq.com/builds/insync-${PV}.${MAGIC}-fc21"
SRC_URI="
x86? ( ${MAIN_INSTALLER_STRING}.i686.rpm )
amd64? ( ${MAIN_INSTALLER_STRING}.x86_64.rpm )"
SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
src_unpack() {
rpm_src_unpack ${A}
mkdir -p "${S}" # Without this src_prepare fails
}
src_install() {
cp -pPR "${WORKDIR}"/{usr,etc} "${D}"/ || die "Installation failed"
echo "SEARCH_DIRS_MASK=\"/usr/lib*/insync\"" > "${T}/70${PN}" || die
insinto "/etc/revdep-rebuild" && doins "${T}/70${PN}" || die
}
pkg_postinst() {
elog "To automatically start insync add 'insync start' to your session"
elog "startup scripts. GNOME users can also choose to enable"
elog "the insync extension via gnome-tweak-tool."
}
|