diff options
author | Marcell Meszaros | 2022-06-12 02:14:14 +0200 |
---|---|---|
committer | Marcell Meszaros | 2022-06-12 02:14:55 +0200 |
commit | 92dc036d8cb11f3250241acd2128cb739830be09 (patch) | |
tree | c915349aa6394dae4f2d2939c49f57b9e7bafe21 /PKGBUILD | |
parent | 8292d73a984c3e419dec86731d6964d16f08f175 (diff) | |
download | aur-92dc036d8cb11f3250241acd2128cb739830be09.tar.gz |
refactor: adjust style; remove current maintainers
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 157 |
1 files changed, 79 insertions, 78 deletions
@@ -1,7 +1,7 @@ -# Maintainer: Marcell Meszaros < marcell.meszaros AT runbox.eu > -# Maintainer: Christian Hesse <mail@eworm.de> +# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > +# Contributor: Christian Hesse <mail@eworm.de> -pkgname=teamviewer-quicksupport +pkgname='teamviewer-quicksupport' epoch=1 pkgver=15.31.3 pkgrel=1 @@ -10,99 +10,100 @@ arch=('x86_64') url='http://www.teamviewer.com/' options=('!strip') depends=( - 'bash' - 'dbus' - 'gcc-libs' - 'glib2' - 'glibc' - 'hicolor-icon-theme' - 'libcap' - 'libgcrypt' - 'libgpg-error' - 'libglvnd' - 'libx11' - 'libxcb' - 'lz4' - 'qt5-quickcontrols' - 'qt5-x11extras' - 'pcre' - 'systemd-libs' - 'xz' - 'zlib' - 'zstd') + 'bash' + 'dbus' + 'gcc-libs' + 'glib2' + 'glibc' + 'hicolor-icon-theme' + 'libcap' + 'libgcrypt' + 'libgpg-error' + 'libglvnd' + 'libx11' + 'libxcb' + 'lz4' + 'qt5-quickcontrols' + 'qt5-x11extras' + 'pcre' + 'systemd-libs' + 'xz' + 'zlib' + 'zstd' +) conflicts=('teamviewer') license=('custom') source=("teamviewer_qs-${pkgver}.tar.gz::https://download.teamviewer.com/download/teamviewer_qs.tar.gz") b2sums=('baaed54141fc43e6bf06ae94364bf4e4a8afe7007085e9adeb2d8067632817f1c6b186d9674bff0a552de056d6b1318a7799b1c0140b1e22803f2043eea77f4e') prepare() { - cd teamviewerqs/ + cd teamviewerqs - if ! grep -q "^TV_VERSION='${pkgver}'\$" tv_bin/script/tvw_config; then - echo "Source version does not match pkgver!" - return 1 - fi + if ! grep -q "^TV_VERSION='${pkgver}'\$" tv_bin/script/tvw_config; then + echo "Source version does not match pkgver!" + return 1 + fi - # Delete unneeded empty dirs - rmdir config - rmdir logfiles + # Delete unneeded empty dirs + rmdir config + rmdir logfiles - cd tv_bin/ + cd tv_bin - # Extract embedded archive - tar -xf archive.tar.xz + # Extract embedded archive + tar -xf archive.tar.xz - # set correct pathes in desktop file - sed -e "/^Exec=/c Exec=/opt/teamviewer/tv_bin/script/teamviewer" \ - -e "/^Icon=/c Icon=teamviewer.png" \ - < desktop/teamviewer.desktop.template \ - > "${srcdir}"/teamviewer.desktop + # set correct pathes in desktop file + sed -e "/^Exec=/c Exec=/opt/teamviewer/tv_bin/script/teamviewer" \ + -e "/^Icon=/c Icon=teamviewer.png" \ + < desktop/teamviewer.desktop.template \ + > "${srcdir}"/teamviewer.desktop - # Don't try to extract tar archive during application runtime - sed -i '/ExtractBinaries/s/^/#/' script/tvw_main + # Don't try to extract tar archive during application runtime + sed -e '/ExtractBinaries/s/^/#/' -i script/tvw_main - # Don't clear LD_PRELOAD before running application - sed -i '/ CheckEnvironment/s/^/#/' script/tvw_main + # Don't clear LD_PRELOAD before running application + sed -e '/ CheckEnvironment/s/^/#/' -i script/tvw_main - # Yes, this is QuickSupport... But we want to use user's home directory. - sed -i '/function isInstalledTV/,/^}$/c function isInstalledTV() { return 0; }' script/tvw_aux + # Yes, this is QuickSupport... But we want to use user's home directory. + sed -e '/function isInstalledTV/,/^}$/c function isInstalledTV() { return 0; }' -i script/tvw_aux - # Fix check for Qt5 XCB in libcheck script - sed -i '/local -r qtxcb/c local -r qtxcb="/usr/lib/qt/plugins/platforms/libqxcb.so"' script/tvw_libcheck + # Fix check for Qt5 XCB in libcheck script + sed -e '/local -r qtxcb/c local -r qtxcb="/usr/lib/qt/plugins/platforms/libqxcb.so"' -i script/tvw_libcheck - # Fix check for Qt5 QuckControls in setup script - sed -e '/CheckQtQuickControls()/{N' \ - -e 'a ls /usr/lib/qt/qml/QtQuick/Controls/qmldir &>/dev/null && return # ArchLinux' \ - -e '}' \ - -i script/teamviewer_setup + # Fix check for Qt5 QuckControls in setup script + sed -e '/CheckQtQuickControls()/{N' \ + -e 'a ls /usr/lib/qt/qml/QtQuick/Controls/qmldir &>/dev/null && return # ArchLinux' \ + -e '}' \ + -i script/teamviewer_setup - # Delete unneeded files - rm -rf RTlib/ - rm -f desktop/teamviewer.desktop.template - rm -f xdg-utils/xdg-email - rm -f archive.tar.xz + # Delete unneeded files + rm -rf RTlib/ + rm -f desktop/teamviewer.desktop.template + rm -f xdg-utils/xdg-email + rm -f archive.tar.xz } package() { - cd teamviewerqs/ - - install -d -m0755 "${pkgdir}"/opt/teamviewer/ - cp -a --no-preserve=ownership * "${pkgdir}"/opt/teamviewer/ - - install -d -m0755 "${pkgdir}"/usr/{bin,share/applications,share/icons/hicolor,share/licenses/${pkgname}} - ln -s /opt/teamviewer/tv_bin/script/teamviewer "${pkgdir}"/usr/bin/teamviewer - ln -s /opt/teamviewer/tv_bin/script/teamviewer "${pkgdir}"/usr/bin/quicksupport - ln -s /opt/teamviewer/doc/License.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE - ln -s /opt/teamviewer/doc/{EULA_en.txt,DPA_en.txt} "${pkgdir}"/usr/share/licenses/${pkgname}/ - - install -D -m0755 "${srcdir}"/teamviewer.desktop "${pkgdir}"/usr/share/applications/teamviewer.desktop - - for iconsize in 16 20 24 32 48 256; do - install -Dm644 "tv_bin/desktop/teamviewer_${iconsize}.png" "${pkgdir}/usr/share/icons/hicolor/${iconsize}x${iconsize}/apps/teamviewer.png" - done - - install -d -m1777 "${pkgdir}"/var/lib/teamviewer - ln -s /var/lib/teamviewer "${pkgdir}"/opt/teamviewer/config - install -d -m1777 "${pkgdir}"/var/log/teamviewer - ln -s /var/log/teamviewer "${pkgdir}"/opt/teamviewer/logfiles + cd teamviewerqs + + install -dm 0755 "${pkgdir}/opt/teamviewer" + cp -a --no-preserve=ownership * "${pkgdir}/opt/teamviewer/" + + install -d -m0755 "${pkgdir}"/usr/{bin,share/applications,share/icons/hicolor,share/licenses/${pkgname}} + ln -s /opt/teamviewer/tv_bin/script/teamviewer "${pkgdir}/usr/bin/teamviewer" + ln -s /opt/teamviewer/tv_bin/script/teamviewer "${pkgdir}/usr/bin/quicksupport" + ln -s /opt/teamviewer/doc/License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + ln -s /opt/teamviewer/doc/{EULA_en.txt,DPA_en.txt} "${pkgdir}/usr/share/licenses/${pkgname}/" + + install -Dm 0755 "${srcdir}/teamviewer.desktop" "${pkgdir}/usr/share/applications/teamviewer.desktop" + + for iconsize in 16 20 24 32 48 256; do + install -Dm 644 "tv_bin/desktop/teamviewer_${iconsize}.png" "${pkgdir}/usr/share/icons/hicolor/${iconsize}x${iconsize}/apps/teamviewer.png" + done + + install -dm 1777 "${pkgdir}/var/lib/teamviewer" + ln -s /var/lib/teamviewer "${pkgdir}/opt/teamviewer/config" + install -dm 1777 "${pkgdir}/var/log/teamviewer" + ln -s /var/log/teamviewer "${pkgdir}/opt/teamviewer/logfiles" } |