blob: aca588f82c6932bcdcf19572232112031b5bdccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer: Janek Thomaschewski <janek@thomaschewski.dev>
# Contributor: Steve Engledow <steve@engledow.me>
pkgname=amazon-workspaces-bin
pkgver=2024.8.5130
pkgrel=3
_aptdist=focal
pkgdesc='Amazon Workspace Client'
arch=('x86_64')
url="https://clients.amazonworkspaces.com/"
license=('non-free')
depends=(
'gtk3'
'webkit2gtk'
'icu'
'libsoup'
'graphicsmagick'
'hiredis0.14'
'openssl-1.1'
'libva'
'libvdpau'
'glib2'
)
options=('staticlibs')
makedepends=(
'binutils'
'tar'
)
source=(
"$pkgname-$pkgver.deb::https://d3nt0h4h6pmmc4.cloudfront.net/new_workspacesclient_${_aptdist}_amd64.deb"
"$pkgname-$pkgver.info::https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu/dists/${_aptdist}/main/binary-amd64/Packages"
lsb_release
workspacesclient-wrapper
)
sha256sums=('880157ef0361b696b34e5ad0957252bc3fd91b8b7a3b992623901fd3880120ca'
'b86729bff47a50f07005b6d3df8449bb594d07ef5fc07cb928b3982763bfb164'
'fb7640c4d5dbb507d6443462eabf1384dd65f069b33a9abc4a599d41ac6d0fb6'
'27c7e51d9434e4cf85d898179ab1b0477b9c695e3461a7403da4e2c37857474f')
prepare() {
# Verify the checksum
echo "$(grep SHA256 "$pkgname-$pkgver.info" | cut -d" " -f2) $pkgname-$pkgver.deb" >sum
sha256sum -c sum
ar x "$pkgname-$pkgver.deb"
tar axvf data.tar.xz
tar axvf control.tar.xz
# Put "fake" lsb_release into PATH to report Ubuntu 20.x
mkdir -p ${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/helper-bin
install -m 0755 ${srcdir}/lsb_release ${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/helper-bin/
install -m 0755 ${srcdir}/workspacesclient-wrapper ${srcdir}/usr/bin/
sed -i -e 's/Exec=workspacesclient/Exec=workspacesclient-wrapper/' ${srcdir}/usr/share/applications/com.amazon.workspacesclient.desktop
# Remove the vendored-in libgio-2.0.so.0, so the system one is used
# The vendored-in version has libselinux.so.1 linked, which doesn't exist natively on Arch
rm ${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/dcv/libgio-2.0.so.0
# The below preparation steps are adapted from the .deb
export LD_LIBRARY_PATH=${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/dcv:$LD_LIBRARY_PATH
export PATH=${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/dcv:$PATH
gdk-pixbuf-query-loaders ${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/dcv/gdk-pixbuf-2.0/2.10.0/loaders/*.so | \
sed "s|^\"${srcdir}|\"|" > ${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/dcv/gdk-pixbuf-2.0/2.10.0/loaders.cache
gtk-query-immodules-3.0 ${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/dcv/gtk-3.0/3.0.0/immodules/*.so | \
sed "s|^\"${srcdir}|\"|" > ${srcdir}/usr/lib/${arch}-linux-gnu/workspacesclient/dcv/gtk-3.0/3.0.0/immodules.cache
}
pkgver() {
grep Version control | cut -d" " -f2
}
package() {
mkdir -p $pkgdir/usr
cp -a $srcdir/usr/* $pkgdir/usr/
}
|