[ add ] viber-7.0.0.1035 и apulse-9999

mhiretskiy
rasdark 7 years ago
parent 61a535426a
commit 787c40f58b

@ -0,0 +1 @@
DIST apulse-0.1.10.tar.gz 110272 SHA256 4f8aa9059d07bac1006e920a4a6b875ad63fdde973b83c138507812c00dd5cd6 SHA512 e922448095b7e3c8ae5766fadd5912ad39c1d0d68c73954305d17909b6bafe3a95c7e1ad4d63a4824293e0ba1495c253204343f31330c0ddb4fb419fe1f9eb12 WHIRLPOOL 56db7a62d75babe269f124f296c6000d322c50c1de583e6b274dc97ec456b6786315cc054ab7e09b1bd436ad47b86b58fc291d8e6f8192b6e2deeca14bef349b

@ -0,0 +1,43 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit multilib cmake-multilib git-r3
DESCRIPTION="PulseAudio emulation for ALSA"
HOMEPAGE="https://github.com/i-rinat/apulse"
EGIT_REPO_URI="https://github.com/i-rinat/apulse.git"
LICENSE="MIT LGPL-2.1"
SLOT="0"
KEYWORDS=""
DEPEND="dev-libs/glib:2[${MULTILIB_USEDEP}]
media-libs/alsa-lib[${MULTILIB_USEDEP}]"
RDEPEND="${DEPEND}
!!media-plugins/alsa-plugins[pulseaudio]"
MULTILIB_CHOST_TOOLS=( /usr/bin/apulse )
src_prepare() {
cmake-utils_src_prepare
# Ensure all relevant libdirs are added, to support all ABIs
DIRS=
_add_dir() { DIRS="${EPREFIX}/usr/$(get_libdir)/apulse${DIRS:+:${DIRS}}"; }
multilib_foreach_abi _add_dir
sed -e "s#@@DIRS@@#${DIRS}#g" "${FILESDIR}"/apulse > "${T}"/apulse || die
}
multilib_src_configure() {
local mycmakeargs=("-DAPULSEPATH=${EPREFIX}/usr/$(get_libdir)/apulse")
cmake-utils_src_configure
}
multilib_src_install_all() {
cmake-utils_src_install
einstalldocs
dobin "${T}"/apulse
}

@ -0,0 +1,14 @@
#!/bin/sh
# Author: Daniel Campbell <zlg@gentoo.org>
# License: Creative Commons Public Domain Dedication (CC0 1.0)
# <https://creativecommons.org/publicdomain/zero/1.0/>
# apulse needs at least one argument
if [ $# -lt 1 ]; then
echo "Usage: apulse <app-path> [options]"
exit
fi
# Set library path for the application so it'll use apulse. DIRS is
# replaced by the ebuild to include the correct paths
LD_LIBRARY_PATH=@@DIRS@@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} exec "$@"

@ -1 +1,2 @@
DIST viber.deb 97799142 SHA256 92822b621843654541bf144ecb77ce727a860521b00afd4acbc6938e3717b71a SHA512 f891ac97beee0810aec51beec3fa2205aa1bf3ccf5200562d57e20f1e3b15cb2dfcdc7e673121f09e76b403593cd9f146091a4c5561a03f1ea9f3f9282d65dfd WHIRLPOOL 927f29de36d66fb65d59ef400cd1a92565b38a21506ee7b8b7f5a3907ddd2b65df9205815a7595c2b812abebcb28850c722fbd307009a73fe1dea744c5f5d2d6
DIST viber-7.0.0.1035.deb 97799142 SHA256 92822b621843654541bf144ecb77ce727a860521b00afd4acbc6938e3717b71a SHA512 f891ac97beee0810aec51beec3fa2205aa1bf3ccf5200562d57e20f1e3b15cb2dfcdc7e673121f09e76b403593cd9f146091a4c5561a03f1ea9f3f9282d65dfd WHIRLPOOL 927f29de36d66fb65d59ef400cd1a92565b38a21506ee7b8b7f5a3907ddd2b65df9205815a7595c2b812abebcb28850c722fbd307009a73fe1dea744c5f5d2d6
DIST viber.deb 84861076 SHA256 bacc38034fa6d926e25122c152c867a4f576b59e920af58ce904c4e9f255773f SHA512 63feee92fb696132680c2c9b3ca29adcba1c250c0eae94c142dd6a3a7e39cdff7a2b7ff46a1629f434dc8a544693fe959ba58bb43c833bb3e22b271ea6cd5c44 WHIRLPOOL fc0eccde9b9329d8469c3d49e2691a56c69a98623b8fcb768efb7ea31e3aaf276c3fb67478605609f019a79c73156d3bf8a2c6d61439a430d83ecd9542018688

@ -0,0 +1,11 @@
--- usr/share/applications/viber.desktop.old 2014-04-03 12:24:38.000000000 +0400
+++ usr/share/applications/viber.desktop 2014-04-03 12:25:03.000000000 +0400
@@ -6,5 +6,5 @@
Terminal=false
Type=Application
Encoding=UTF-8
-Categories=Network;Application;
-Path=
+Categories=Network;
+Path=/opt/viber

@ -0,0 +1,2 @@
#!/bin/sh
exec apulse /opt/viber/viber-bin "$@"

@ -0,0 +1,48 @@
# 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
}

@ -4,13 +4,13 @@
EAPI=5
inherit eutils
inherit eutils unpacker
DESCRIPTION="Free calls, text and picture sharing with anyone, anywhere!"
HOMEPAGE="http://www.viber.com"
SRC_URI="http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb"
SLOT="0"
KEYWORDS="~amd64"
KEYWORDS=""
IUSE=""
RESTRICT="strip"
S="${WORKDIR}"
@ -19,8 +19,7 @@ S="${WORKDIR}"
LICENSE="EULA"
src_prepare() {
unpack ./control.tar.gz
unpack ./data.tar.xz
unpack_deb ${A}
}
src_install(){

Loading…
Cancel
Save