blob: 4ca04562a5ba1cc7a9693ed7475e39605940ac5a (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
# Maintainer: Christian Hesse <mail@eworm.de>
pkgbase=omnissa-horizon-client
pkgname=(
'omnissa-horizon-client'
'omnissa-horizon-file-association'
'omnissa-horizon-html5mmr'
'omnissa-horizon-integrated-printing'
'omnissa-horizon-scanner-client'
'omnissa-horizon-serialport-client'
'omnissa-horizon-usb')
pkgver=2412
_build1=8.14.0
_build2=12437214089
_cart="CART25FQ4_LIN_${pkgver}_TARBALL"
pkgrel=3
pkgdesc='Omnissa Horizon Client - connect to Omnissa Horizon virtual desktop'
arch=('x86_64')
makedepends=('imagemagick')
options=('!debug')
url='https://customerconnect.omnissa.com/downloads/info/slug/desktop_end_user_computing/omnissa_horizon_clients/8'
license=('custom')
source=("${pkgbase}-${pkgver}-${_build1}-${_build2}.tar.gz::https://download3.omnissa.com/software/${_cart}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}.tar.gz"
'Horizon_8_Logo.png'
'horizon-usb.service')
sha256sums=('b6098f7d9a876ef51f4683a6a94359f94355e4b867cd0b8a5f2117b020993c11'
'100b71b82194c8d50e3101d8ac37f47bbf5706a0e49f14607e4a2fc90e2ed9b5'
'2e9ecddd7cd4d5f65c794065898d3b6ac8e6dd97d05114f7f3775da82263c6d2')
prepare() {
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
for TARBALL in *.tar.gz; do
tar xf "${TARBALL}"
done
}
build() {
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
# let's use our libstdc++ from gcc-libs...
rm --recursive --force \
"Omnissa-Horizon-PCoIP-${pkgver}-${_build1}-${_build2}.x64/usr/lib/omnissa/gcc/"
# move common files into the client package...
mv "Omnissa-Horizon-scannerClient-${pkgver}-${_build1}-${_build2}.x64/usr/lib/omnissa/horizon/scannerSerialPortCommon/" \
"Omnissa-Horizon-Client-${pkgver}-${_build1}-${_build2}.x64/usr/lib/omnissa/horizon/"
mv "Omnissa-Horizon-scannerClient-${pkgver}-${_build1}-${_build2}.x64/usr/lib/omnissa/rdpvcbridge/" \
"Omnissa-Horizon-Client-${pkgver}-${_build1}-${_build2}.x64/usr/lib/omnissa/"
rm --recursive --force \
"Omnissa-Horizon-serialportClient-${pkgver}-${_build1}-${_build2}.x64/usr/lib/omnissa/"{'horizon/scannerSerialPortCommon/','rdpvcbridge'}
# add a comment to desktop file, use proper icons
sed -i -e '/Name=/a Comment=Connect to Omnissa Horizon View virtual machines' -e '/^Icon=/c Icon=horizon-client' \
"Omnissa-Horizon-Client-${pkgver}-${_build1}-${_build2}.x64/usr/share/applications/horizon-client.desktop"
# prepare high(er) quality icons
# BTW... Anybody has a SVG file for that icon?
install -d "${srcdir}/icons"
for SIZE in 16 24 32 48 64 96 128; do
magick "${srcdir}/Horizon_8_Logo.png" \
-scale "${SIZE}" +set date:create +set date:modify \
"${srcdir}/icons/horizon-client-${SIZE}.png"
done
}
package_omnissa-horizon-client() {
conflicts=('vmware-horizon-client'
'vmware-horizon-mmr'
'vmware-horizon-pcoip'
'vmware-horizon-rtav'
'vmware-horizon-smartcard'
'vmware-horizon-teams-optimization'
'vmware-horizon-tsdr')
replaces=('vmware-horizon-client'
'vmware-horizon-mmr'
'vmware-horizon-pcoip'
'vmware-horizon-rtav'
'vmware-horizon-smartcard'
'vmware-horizon-teams-optimization'
'vmware-horizon-tsdr')
depends=('binutils' 'expat' 'gcc-libs' 'glib2' 'gtk3' 'libudev0-shim' 'libxml2' 'libxss'
'libxtst' 'openssl')
optdepends=('alsa-lib: audio support via alsa'
'freerdp: RDP remote desktop connections'
'libpulse: audio support via pulse sound server'
'rdesktop: RDP remote desktop connections'
'omnissa-horizon-html5mmr: HTML5 MultiMedia Redirection'
'omnissa-horizon-integrated-printing: integrated printing'
'omnissa-horizon-scanner-client: scanner client'
'omnissa-horizon-serialport-client: serialport client'
'omnissa-horizon-usb: USB device redirection')
install=omnissa-horizon-client.install
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
cp -a "Omnissa-Horizon-Client-${pkgver}-${_build1}-${_build2}.x64/usr/" "${pkgdir}/"
cp -a "Omnissa-Horizon-PCoIP-${pkgver}-${_build1}-${_build2}.x64/usr/" "${pkgdir}/"
# drop duplicate libraries
for LIB in 'vaapi2' 'vaapi2.7' 'vdpau'; do
rm -rf "${pkgdir}/usr/lib/omnissa/horizon/${LIB}"
ln -s software "${pkgdir}/usr/lib/omnissa/horizon/${LIB}"
done
# install high(er) quality icons
for SIZE in 16 24 32 48 64 96 128; do
install -D "${srcdir}/icons/horizon-client-${SIZE}.png" \
"${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/horizon-client.png"
done
}
package_omnissa-horizon-file-association() {
pkgdesc='Omnissa Horizon Client - File Association'
depends=('omnissa-horizon-client')
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
cp -a "Omnissa-Horizon-fileAssociation-${pkgver}-${_build1}-${_build2}.x64/usr/" "${pkgdir}/"
}
package_omnissa-horizon-html5mmr() {
pkgdesc='Omnissa Horizon Client - HTML5 MultiMedia Redirection'
depends=('omnissa-horizon-client')
conflicts=('vmware-horizon-html5mmr')
replaces=('vmware-horizon-html5mmr')
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
cp -a "Omnissa-Horizon-html5mmr-${pkgver}-${_build1}-${_build2}.x64/usr/" "${pkgdir}/"
}
package_omnissa-horizon-integrated-printing() {
pkgdesc='Omnissa Horizon Client - integrated printing'
depends=('omnissa-horizon-client' 'libcups' 'zlib')
conflicts=('vmware-horizon-virtual-printing' 'vmware-horizon-integrated-printing')
replaces=('vmware-horizon-virtual-printing' 'vmware-horizon-integrated-printing')
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
cp -a "Omnissa-Horizon-integratedPrinting-${pkgver}-${_build1}-${_build2}.x64/usr/" "${pkgdir}/"
}
package_omnissa-horizon-scanner-client() {
pkgdesc='Omnissa Horizon Client - scanner client'
depends=('omnissa-horizon-client')
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
cp -a "Omnissa-Horizon-scannerClient-${pkgver}-${_build1}-${_build2}.x64/usr/" "${pkgdir}/"
}
package_omnissa-horizon-serialport-client() {
pkgdesc='Omnissa Horizon Client - serialport client'
depends=('omnissa-horizon-client' 'libutil-linux' 'zlib' 'glib2')
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
cp -a "Omnissa-Horizon-serialportClient-${pkgver}-${_build1}-${_build2}.x64/usr/" "${pkgdir}/"
}
package_omnissa-horizon-usb() {
pkgdesc='Omnissa Horizon Client - USB device redirection'
depends=('omnissa-horizon-client' 'glib2')
conflicts=('vmware-horizon-usb')
replaces=('vmware-horizon-usb')
install=omnissa-horizon-usb.install
cd "${srcdir}/Omnissa-Horizon-Client-Linux-${pkgver}-${_build1}-${_build2}/x64/"
cp -a "Omnissa-Horizon-USB-${pkgver}-${_build1}-${_build2}.x64/usr/" "${pkgdir}/"
install -D -m0644 "${srcdir}/horizon-usb.service" "${pkgdir}/usr/lib/systemd/system/horizon-usb.service"
}
|