You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/net-im/viber/viber-7.0.0.1035.ebuild

49 lines
1.1 KiB

# Copyright 2010-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit eutils unpacker
DESCRIPTION="Free calls, text and picture sharing with anyone, anywhere!"
HOMEPAGE="http://www.viber.com"
SRC_URI="
amd64? ( http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb -> ${P}.deb )
"
SLOT="0"
KEYWORDS="~amd64"
IUSE="pulseaudio apulse"
REQUIRED_USE="apulse? ( !pulseaudio )"
QA_PREBUILT="*"
RESTRICT="mirror bindist strip"
RDEPEND="
apulse? ( =media-sound/apulse-9999 )
pulseaudio? ( media-sound/pulseaudio )
"
S="${WORKDIR}"
src_unpack() {
unpack_deb ${A}
}
src_install(){
doins -r opt usr
if use apulse; then
mv ${ED}/opt/${PN}/Viber ${ED}/opt/${PN}/${PN}-bin
insinto opt/${PN}
doins "${FILESDIR}/${PN}"
fowners root:audio /opt/${PN}/${PN} /opt/${PN}/${PN}-bin
fperms 755 /opt/${PN}/${PN} /opt/${PN}/${PN}-bin
sed -i -e '/^Exec/s/Viber/viber/' ${ED}/usr/share/applications/viber.desktop
else
fperms 755 /opt/${PN}/Viber
fi
fperms 755 /opt/${PN}/QtWebEngineProcess
}