Patch teamviewer_setup and include it in prepare()

nmfix
Sebastian 'Swift Geek' Grzywna 2018-04-05 10:19:28 +02:00
parent a9f43d1065
commit a0fb39ec23
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,8 @@ license=('custom')
options=('!strip')
provides=('teamviewer')
conflicts=('teamviewer-beta')
# /opt/teamviewer/tv_bin/script/teamviewer_setup checklibs can check deps for each TV component:
# TV_DMN, TV_DESK, TV_GUI
depends_x86_64=(
'hicolor-icon-theme'
'qt5-webkit'
@ -51,6 +53,11 @@ prepare() {
msg2 "Unpacking $datatar"
tar -xf $datatar
done
sed -i '/function CheckQtQuickControls()/{N;a ls /usr/lib/qt/qml/QtQuick/Controls/qmldir &>/dev/null && return # ArchLinux
}' ./opt/teamviewer/tv_bin/script/teamviewer_setup || msg2 "Patching CheckQtQuickControls failed! Contact maintainer"
msg2 "Running teamviewer_setup checklibs"
./opt/teamviewer/tv_bin/script/teamviewer_setup checklibs \
|| msg2 "teamviewer_setup checklibs failed, contact maintainer with /tmp/teamviewerTARLibCheck/DependencyCheck.log" # Currently it always exits 0
}
package() {