Advertisement
Guest User

Untitled

a guest
Dec 16th, 2020
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. # Maintainer: Alex Taber <aft dot pokemon at gmail dot com>
  2. # Contributor: Luna Jernberg <droidbittin at gmail dot com>
  3.  
  4. pkgname=teamviewer
  5. pkgver=15.13.6
  6. pkgrel=1
  7. pkgdesc='All-In-One Software for Remote Support and Online Meetings'
  8. arch=('i686' 'x86_64' 'armv7h')
  9. url='http://www.teamviewer.com'
  10. license=('custom')
  11. options=('!strip')
  12. provides=('teamviewer')
  13. conflicts=('teamviewer-beta')
  14. # /opt/teamviewer/tv_bin/script/teamviewer_setup checklibs can check deps for each TV component:
  15. # TV_DMN, TV_DESK, TV_GUI
  16. depends=(
  17. 'hicolor-icon-theme'
  18. 'qt5-webkit'
  19. 'qt5-x11extras'
  20. 'qt5-quickcontrols' # Doesn't appear in namcap, won't display UI without it.
  21. )
  22. #depends_x86_64=(
  23. # libdepends:
  24. # 'lib32-libxtst'
  25. # 'lib32-libxinerama'
  26. # 'lib32-libxrandr'
  27. # 'lib32-libxdamage'
  28. # 'lib32-fontconfig'
  29. # 'lib32-libsm')
  30. #depends_i686=()
  31. #depends_armv7h=()
  32. install=teamviewer.install
  33. source_x86_64=("https://dl.teamviewer.com/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_amd64.deb")
  34. source_i686=("https://dl.teamviewer.com/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_i386.deb")
  35. source_armv7h=("https://dl.teamviewer.com/download/linux/version_${pkgver%%.*}x/teamviewer-host_${pkgver}_armhf.deb")
  36. #source_armv7h=("https://dl.teamviewer.com/download/linux/version_${pkgver%%.*}x/teamviewer-host_13.2.13582_armhf.deb")
  37. sha256sums_i686=('691a4e70ece45b814cdcaf3c4245cea25de220d79ef6b43d312e359bf9465917')
  38. sha256sums_x86_64=('8dbecb5b810881b756256fb97b4e7122845d4a43ab6a4a3534f67a864bcde77d')
  39. sha256sums_armv7h=('04568b038468f0cfccefb65353d55e4ff3209961f035c8c1428779c30f96e0a9')
  40.  
  41. prepare() {
  42. warning "If the install fails, you need to uninstall previous major version of Teamviewer"
  43. [ -d data ] && rm -rf data
  44. mkdir data
  45. cd data
  46. for datatar in ../data.tar.*; do
  47. msg2 "Unpacking $datatar"
  48. tar -xf $datatar
  49. done
  50. sed -i '/function CheckQtQuickControls()/{N;a ls /usr/lib/qt/qml/QtQuick/Controls/qmldir &>/dev/null && return # ArchLinux
  51. }' ./opt/teamviewer/tv_bin/script/teamviewer_setup || msg2 "Patching CheckQtQuickControls failed! Contact maintainer"
  52. msg2 "Running teamviewer_setup checklibs"
  53. ./opt/teamviewer/tv_bin/script/teamviewer_setup checklibs \
  54. || msg2 "teamviewer_setup checklibs failed, contact maintainer with /tmp/teamviewerTARLibCheck/DependencyCheck.log" # Currently it always exits 0
  55. }
  56.  
  57. package() {
  58. # Install
  59. warning "If the install fails, you need to uninstall previous major version of Teamviewer"
  60. cp -dr --no-preserve=ownership ./data/{etc,opt,usr,var} "${pkgdir}"/
  61.  
  62. # Additional files
  63. rm "${pkgdir}"/opt/teamviewer/tv_bin/xdg-utils/xdg-email
  64. rm -rf "${pkgdir}"/etc/apt
  65. install -D -m0644 "${pkgdir}"/opt/teamviewer/tv_bin/script/teamviewerd.service \
  66. "${pkgdir}"/usr/lib/systemd/system/teamviewerd.service
  67. install -d -m0755 "${pkgdir}"/usr/{share/applications,share/licenses/teamviewer}
  68. ln -s /opt/teamviewer/License.txt \
  69. "${pkgdir}"/usr/share/licenses/teamviewer/LICENSE
  70. if [ "$CARCH" = "x86_64" ] && [ -f "${pkgdir}/opt/teamviewer/tv_bin/script/libdepend" ]; then
  71. msg2 "Removing libdepend to ditch lib32 dependencies"
  72. rm "${pkgdir}/opt/teamviewer/tv_bin/script/libdepend"
  73. fi
  74. }
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement