2021-08-01 16:22:36 -07:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2021-07-31 22:27:50 -07:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2021-08-01 16:22:36 -07:00
|
|
|
inherit rpm xdg-utils
|
2021-07-31 22:27:50 -07:00
|
|
|
|
|
|
|
DESCRIPTION="Insync extends Google Drive & OneDrive's web functionality to your desktop by integrating tightly with Linux so you can get work done"
|
|
|
|
HOMEPAGE="https://www.insynchq.com/"
|
|
|
|
|
2021-08-01 16:22:36 -07:00
|
|
|
SRC_URI="http://s.insynchq.com/builds/insync-${PV}-fc30.x86_64.rpm"
|
|
|
|
|
|
|
|
RESTRICT="strip"
|
|
|
|
|
|
|
|
LICENSE="as-is"
|
2021-07-31 22:27:50 -07:00
|
|
|
SLOT="0"
|
2021-08-01 16:22:36 -07:00
|
|
|
KEYWORDS="~amd64"
|
2021-07-31 22:27:50 -07:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="
|
2021-08-01 16:22:36 -07:00
|
|
|
>=sys-libs/glibc-2.29
|
2021-07-31 22:27:50 -07:00
|
|
|
"
|
2021-08-01 16:22:36 -07:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND=""
|
2021-07-31 22:27:50 -07:00
|
|
|
|
2021-08-01 16:22:36 -07:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/insync-3-fix-ca-path.patch"
|
|
|
|
"${FILESDIR}/insync-3-lib64.patch"
|
|
|
|
)
|
2021-07-31 22:27:50 -07:00
|
|
|
|
2021-08-01 16:22:36 -07:00
|
|
|
src_unpack() {
|
|
|
|
rpm_src_unpack
|
2021-07-31 22:27:50 -07:00
|
|
|
|
2021-08-01 16:22:36 -07:00
|
|
|
mkdir -p "${S}"
|
|
|
|
mv "${WORKDIR}"/usr "${S}"/
|
2021-07-31 22:27:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2021-08-01 16:22:36 -07:00
|
|
|
cp -pPR "${WORKDIR}"/"${P}"/usr/ "${D}"/ || die "Installation failed"
|
|
|
|
mv "${D}"/usr/lib "${D}"/usr/lib64
|
|
|
|
rm -Rf "${D}"/usr/lib64/.build-id
|
|
|
|
gunzip "${D}"/usr/share/man/man1/insync.1.gz
|
|
|
|
|
|
|
|
echo "SEARCH_DIRS_MASK=\"/usr/lib*/insync\"" > "${T}/70-${PN}" || die
|
|
|
|
|
|
|
|
insinto "/etc/revdep-rebuild" && doins "${T}/70-${PN}" || die
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
xdg_desktop_database_update
|
|
|
|
xdg_mimeinfo_database_update
|
|
|
|
xdg_icon_cache_update
|
2021-07-31 22:27:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
2021-08-01 16:22:36 -07:00
|
|
|
xdg_desktop_database_update
|
|
|
|
xdg_mimeinfo_database_update
|
|
|
|
xdg_icon_cache_update
|
2021-07-31 22:27:50 -07:00
|
|
|
}
|
2021-08-01 16:22:36 -07:00
|
|
|
|