Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Alex Taber <aft dot pokemon at gmail dot com>
- pkgname=teamviewer
- pkgver=15.0.8397
- pkgrel=1
- pkgdesc='All-In-One Software for Remote Support and Online Meetings'
- arch=('i686' 'x86_64' 'armv7h')
- url='http://www.teamviewer.com'
- 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=(
- 'hicolor-icon-theme'
- 'qt5-webkit'
- 'qt5-x11extras'
- 'qt5-quickcontrols' # Doesn't appear in namcap, won't display UI without it.
- )
- #depends_x86_64=(
- # libdepends:
- # 'lib32-libxtst'
- # 'lib32-libxinerama'
- # 'lib32-libxrandr'
- # 'lib32-libxdamage'
- # 'lib32-fontconfig'
- # 'lib32-libsm')
- #depends_i686=()
- #depends_armv7h=()
- install=teamviewer.install
- source_x86_64=("https://dl.tvcdn.de/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_amd64.deb")
- source_i686=("https://dl.tvcdn.de/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_i386.deb")
- source_armv7h=("https://dl.tvcdn.de/download/linux/version_${pkgver%%.*}x/teamviewer-host_${pkgver}_armhf.deb")
- #source_armv7h=("https://dl.tvcdn.de/download/linux/version_${pkgver%%.*}x/teamviewer-host_13.2.13582_armhf.deb")
- # Old ones
- #sha256sums_i686=('d7d8cf4e5a3a9273c7b00c4d9be057e243643a0d1fc116ffd7c97e2859c4e97c')
- #sha256sums_x86_64=('1c2a70a6ad16c2c1b4da20b3ed7715ab59f5dac55ee99a945c9fd1cdf13ac748')
- #sha256sums_armv7h=('cc68e495598ea27a41e2d56bd01709468eec65777486fb1fb8aae58abc0acfb1')
- # New ones
- sha256sums_i686=('8a6cd9e685c18487d3238fd307042f5b551c71797af4353443d7a90ff4801390')
- sha256sums_x86_64=('da98c868256613b082a4fa126cdd83088cbb11a85ab90f5852ebe27f29a72d2e')
- #sha256sums_armv7h=('cc68e495598ea27a41e2d56bd01709468eec65777486fb1fb8aae58abc0acfb1')
- prepare() {
- warning "If the install fails, you need to uninstall previous major version of Teamviewer"
- [ -d data ] && rm -rf data
- mkdir data
- cd data
- for datatar in ../data.tar.*; do
- 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() {
- # Install
- warning "If the install fails, you need to uninstall previous major version of Teamviewer"
- cp -dr --no-preserve=ownership ./data/{etc,opt,usr,var} "${pkgdir}"/
- # Additional files
- rm "${pkgdir}"/opt/teamviewer/tv_bin/xdg-utils/xdg-email
- rm -rf "${pkgdir}"/etc/apt
- install -D -m0644 "${pkgdir}"/opt/teamviewer/tv_bin/script/teamviewerd.service \
- "${pkgdir}"/usr/lib/systemd/system/teamviewerd.service
- install -d -m0755 "${pkgdir}"/usr/{share/applications,share/licenses/teamviewer}
- ln -s /opt/teamviewer/License.txt \
- "${pkgdir}"/usr/share/licenses/teamviewer/LICENSE
- if [ "$CARCH" = "x86_64" ] && [ -f "${pkgdir}/opt/teamviewer/tv_bin/script/libdepend" ]; then
- msg2 "Removing libdepend to ditch lib32 dependencies"
- rm "${pkgdir}/opt/teamviewer/tv_bin/script/libdepend"
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement