summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMads Mogensen2020-08-13 13:54:14 +0200
committerMads Mogensen2020-08-13 13:54:14 +0200
commit1643d93a0a4af7cee9bd926a5c1531747349e71e (patch)
tree124e9aeb9166a8771f40eb8cd1e4e70167feb4a8 /PKGBUILD
parent60391a3f33a30b07c0fb97e1f5d756b5feb51cd6 (diff)
downloadaur-1643d93a0a4af7cee9bd926a5c1531747349e71e.tar.gz
Update to 4.1.1, move to /opt/airtame-application, and fix rpath
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 17 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 375ac8a0bcf..c73f8ffef64 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,24 +3,34 @@
# Contributor: mod24 <bruenker(at)sintro(dot)de>
pkgname=airtame-application
-pkgver=4.1.0
+pkgver=4.1.1
pkgrel=1
pkgdesc="Airtame official screen streaming application."
arch=('x86_64')
url="https://airtame.com"
license=('custom')
-depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'libutil-linux' 'libappindicator-gtk3' 'libsecret')
+depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'libutil-linux' 'libappindicator-gtk3' 'libsecret' 'libpulse' 'opus')
+makedepends=('patchelf')
source=("https://downloads.airtame.com/app/latest/linux/Airtame-${pkgver}.deb")
-sha1sums=('a57a0e5f1d45746bb4455f6632470feb2c52cffe')
+sha1sums=('ee8b8b0da48744ecc96ae98ea24ce4d57ac47c58')
package() {
# Extract package data
tar xf data.tar.xz -C "${pkgdir}"
+ # Move airtame to correct folder
+ mv "${pkgdir}/opt/Airtame/" "${pkgdir}/opt/${pkgname}"
+
+ # Fix path for desktop file
+ sed -i "s|/opt/Airtame|/opt/${pkgname}|g" "${pkgdir}/usr/share/applications/airtame-application.desktop"
+
+ # Fix insecure rpath
+ patchelf --force-rpath --set-rpath "\$ORIGIN" "${pkgdir}/opt/${pkgname}/resources/build/native/out/lib/libAirtameEncryption.so"
+
# Install licenses
- install -m 644 -D ${pkgdir}/opt/Airtame/LICENSE.electron.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt
- install -m 644 -D ${pkgdir}/opt/Airtame/LICENSES.chromium.html ${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html
+ install -m 644 -D "${pkgdir}/opt/${pkgname}/LICENSE.electron.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt"
+ install -m 644 -D "${pkgdir}/opt/${pkgname}/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
# Make airtame-application available in /usr/bin/
- mkdir ${pkgdir}/usr/bin
- ln -s /opt/Airtame/airtame-application ${pkgdir}/usr/bin/airtame-application
+ mkdir "${pkgdir}/usr/bin"
+ ln -s "/opt/${pkgname}/airtame-application" "${pkgdir}/usr/bin/airtame-application"
}