linamh/app-backup/insync/insync-3.0.27.40677.ebuild

86 lines
2.9 KiB
Bash
Raw Normal View History

2020-01-23 15:27:39 +01:00
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MULTILIB_COMPAT=( abi_x86_64 )
inherit pax-utils rpm multilib-build xdg-utils
DESCRIPTION="Advanced cross-platform Google Drive client"
HOMEPAGE="https://www.insynchq.com/"
NAUTILUSPV="3.0.23.40579"
DOLPHINPV="3.0.22.40446"
THUNARPV="3.0.23.40579"
NEMOPV="3.0.11.40167"
CAJAPV="3.0.11.40167"
SRC_URI="
x86? ( http://s.insynchq.com/builds/insync-1.4.9.37127-fc25.i686.rpm )
amd64? ( http://yum.insync.io/fedora/31/x86_64/insync-${PV}-fc30.x86_64.rpm
http://yum.insync.io/fedora/31/noarch/insync-nautilus-${NAUTILUSPV}-1.noarch.rpm
http://yum.insync.io/fedora/31/noarch/insync-dolphin-${DOLPHINPV}-1.noarch.rpm
http://yum.insync.io/fedora/31/noarch/insync-thunar-${THUNARPV}-1.x86_64.rpm
http://yum.insync.io/fedora/31/noarch/insync-nemo-${NEMOPV}-1.noarch.rpm
http://yum.insync.io/fedora/31/noarch/insync-caja-${CAJAPV}-1.noarch.rpm )"
LICENSE="no-source-code"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pax_kernel nautilus dolphin thunar caja nemo"
S="${WORKDIR}"
QA_PREBUILT=opt/skypeforlinux/skypeforlinux
QA_TEXTRELS=opt/skypeforlinux/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
QA_EXECSTACK=opt/skypeforlinux/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
RESTRICT="mirror bindist strip" #299368
RDEPEND=""
src_unpack() {
rpm_src_unpack
}
src_prepare() {
default
sed -e "s!^cd.*!cd ${EPREFIX}/opt/insync!" \
-i usr/bin/insync || die
sed -e "s!^Exec=insync start!Exec=${EPREFIX}/opt/bin/insync start --ca-path=/etc/ssl/certs!" \
-i usr/share/applications/insync.desktop || die
sed -e "s!^Exec=insync!Exec=${EPREFIX}/opt/bin/insync!" \
-i usr/share/applications/insync-helper.desktop || die
sed -e "s!^Exec=insync!Exec=${EPREFIX}/opt/bin/insync!" \
-i usr/share/kde4/services/ServiceMenus/insync_servicemenu.desktop || die
sed -e "s!^Exec=insync!Exec=${EPREFIX}/opt/bin/insync!" \
-i usr/share/kservices5/ServiceMenus/insync_servicemenu.desktop || die
}
src_install() {
dodir /opt
cp -a usr/lib/insync "${D}"/opt || die
dodir /usr
cp -a usr/share "${D}"/usr || die
into /opt
dobin usr/bin/insync
if use pax_kernel; then
pax-mark -Cm "${ED%/}"/opt/skypeforlinux/skypeforlinux
pax-mark -Cm "${ED%/}"/opt/skypeforlinux/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
eqawarn "You have set USE=pax_kernel meaning that you intend to run"
eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
eqawarn "you suspect that ${PN} is being broken by this modification,"
eqawarn "please open a bug."
fi
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}