commit:     99a59b9c8b3fe4875a4a66d0c088e080c95ec579
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Sat Jul  2 12:21:55 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 15 01:43:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99a59b9c

net-misc/icaclient: fix variable scope issues

Closes: https://bugs.gentoo.org/836089
Signed-off-by: Henning Schild <henning <AT> hennsch.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/icaclient/icaclient-22.5.0.16.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net-misc/icaclient/icaclient-22.5.0.16.ebuild 
b/net-misc/icaclient/icaclient-22.5.0.16.ebuild
index ed272b4e5416..4ede9e8d1db4 100644
--- a/net-misc/icaclient/icaclient-22.5.0.16.ebuild
+++ b/net-misc/icaclient/icaclient-22.5.0.16.ebuild
@@ -83,8 +83,11 @@ pkg_setup() {
                        eerror "Given architecture is not supported by Citrix."
                ;;
        esac
+}
 
-       S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor"
+src_unpack() {
+       default
+       mv "${WORKDIR}/${ICAARCH}/${ICAARCH}.cor" "${S}"
 }
 
 src_prepare() {
@@ -250,7 +253,7 @@ src_install() {
 pkg_postinst() {
        xdg_desktop_database_update
 
-       local inidest="${BROOT}${ICAROOT}/config"
+       local inidest="${ROOT}${ICAROOT}/config"
        if [[ ! -e "${inidest}"/module.ini ]] ; then
                mv "${T}"/module.ini "${inidest}/" \
                        || ewarn 'Failed to install plugin.ini file'

Reply via email to