95 lines
2.7 KiB
Bash
95 lines
2.7 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit pax-utils rpm multilib xdg-utils
|
|
|
|
DESCRIPTION="Advanced cross-platform Google Drive client"
|
|
HOMEPAGE="https://www.insynchq.com/"
|
|
NAUTILUSPV="3.8.7.50516"
|
|
DOLPHINPV="3.7.9.50368"
|
|
THUNARPV="3.7.9.50368"
|
|
NEMOPV="3.7.9.50368"
|
|
CAJAPV="3.7.9.50368"
|
|
EMBLEMPV="3.4.2.40983"
|
|
SRC_URI="
|
|
x86? ( http://s.insynchq.com/builds/insync-1.4.9.37127-fc25.i686.rpm )
|
|
amd64? ( https://cdn.insynchq.com/builds/linux/${PV}/insync-${PV}-fc38.x86_64.rpm
|
|
https://cdn.insynchq.com/builds/linux/${NAUTILUSPV}/insync-nautilus-${NAUTILUSPV}-1.noarch.rpm
|
|
https://cdn.insynchq.com/builds/linux/${DOLPHINPV}/insync-dolphin-${DOLPHINPV}-1.noarch.rpm
|
|
https://cdn.insynchq.com/builds/linux/${THUNARPV}/insync-thunar-${THUNARPV}-1.x86_64.rpm
|
|
https://cdn.insynchq.com/builds/linux/${NEMOPV}/insync-nemo-${NEMOPV}-1.noarch.rpm
|
|
https://cdn.insynchq.com/builds/linux/${CAJAPV}/insync-caja-${CAJAPV}-1.noarch.rpm
|
|
http://yum.insync.io/fedora/35/noarch/${EMBLEMPV}/insync-emblem-icons-${EMBLEMPV}-1.noarch.rpm )"
|
|
|
|
|
|
LICENSE="no-source-code"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
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="dev-qt/qtcore:5
|
|
dev-qt/qtdeclarative:5
|
|
dev-qt/qtgui:5
|
|
dev-qt/qtnetwork:5
|
|
dev-qt/qtpositioning:5
|
|
dev-qt/qtwebchannel:5
|
|
dev-qt/qtwebengine:5
|
|
dev-qt/qtvirtualkeyboard:5
|
|
dev-qt/qtcharts:5
|
|
dev-qt/qtlocation:5
|
|
dev-qt/qtsensors:5
|
|
sys-libs/zlib
|
|
|| ( sys-devel/base-gcc sys-devel/gcc )
|
|
media-libs/libglvnd
|
|
sys-libs/glibc
|
|
dev-libs/libffi-compat
|
|
>=dev-lang/python-3"
|
|
|
|
src_unpack() {
|
|
rpm_src_unpack
|
|
}
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -e "s!/usr/lib/insync/insync!${EPREFIX}/opt/insync/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/kservices5/fileitemactioninsyncplugin.desktop || die
|
|
}
|
|
|
|
src_install() {
|
|
dodir /opt
|
|
cp -a usr/lib/insync "${D}"/opt || die
|
|
rm "${D}"/opt/insync/libsndfile.so.1
|
|
|
|
dodir /usr
|
|
cp -a usr/share "${D}"/usr || die
|
|
cp -a usr/$(get_libdir) "${D}"/usr || die
|
|
|
|
into /opt
|
|
dobin usr/bin/insync
|
|
|
|
into /usr
|
|
dobin usr/bin/insync
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_desktop_database_update
|
|
xdg_mimeinfo_database_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
xdg_desktop_database_update
|
|
xdg_mimeinfo_database_update
|
|
}
|