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

92 lines
2.6 KiB
Bash
Raw Normal View History

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
2023-07-20 20:28:34 +02:00
EAPI=8
inherit pax-utils rpm multilib xdg-utils
DESCRIPTION="Advanced cross-platform Google Drive client"
HOMEPAGE="https://www.insynchq.com/"
2023-12-25 02:05:16 +01:00
NAUTILUSPV="3.8.2.50468"
2022-11-19 21:49:12 +01:00
DOLPHINPV="3.7.9.50368"
2023-12-25 02:05:16 +01:00
THUNARPV="3.7.9.50368"
2022-11-19 21:49:12 +01:00
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 )
2023-12-25 02:05:16 +01:00
amd64? ( https://cdn.insynchq.com/builds/linux/insync-${PV}-fc38.x86_64.rpm
2022-11-19 21:49:12 +01:00
https://cdn.insynchq.com/builds/linux/insync-nautilus-${NAUTILUSPV}-1.noarch.rpm
https://cdn.insynchq.com/builds/linux/insync-dolphin-${DOLPHINPV}-1.noarch.rpm
2023-12-25 02:05:16 +01:00
https://cdn.insynchq.com/builds/linux/insync-thunar-${THUNARPV}-1.x86_64.rpm
2022-11-19 21:49:12 +01:00
https://cdn.insynchq.com/builds/linux/insync-nemo-${NEMOPV}-1.noarch.rpm
https://cdn.insynchq.com/builds/linux/insync-caja-${CAJAPV}-1.noarch.rpm
http://yum.insync.io/fedora/35/noarch/insync-emblem-icons-${EMBLEMPV}-1.noarch.rpm )"
2022-11-19 21:49:12 +01:00
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
2023-11-28 14:02:18 +01:00
dev-qt/qtvirtualkeyboard:5
sys-libs/zlib
|| ( sys-devel/base-gcc sys-devel/gcc )
media-libs/libglvnd
sys-libs/glibc
dev-libs/libffi-compat
2022-07-12 15:04:49 +02:00
>=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
2022-11-19 21:49:12 +01:00
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
}