thinlinc-client-bin/PKGBUILD

91 lines
3.1 KiB
Text
Raw Normal View History

2025-09-03 21:53:06 +02:00
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
# Contributor: Nobbele <realnobbele@gmail.com>
pkgname=thinlinc-client-bin
pkgver=4.19.0_4005
2025-09-07 18:08:46 +02:00
pkgrel=6
2025-09-03 21:53:06 +02:00
pkgdesc="Cendio ThinLinc Linux remote desktop client."
url="https://www.cendio.com"
arch=(
x86_64
armv7h
)
license=(
'LicenseRef-CENDIO_END_USER_LICENSE_AGREEMENT_3.5'
)
optdepends=(
'cups: required for remote printing'
'python-ldap: auth against ldap'
)
source_x86_64=(
"$pkgname"-"$pkgver".tar.gz::https://www.cendio.com/downloads/clients/tl-"${pkgver//_/-}"-client-linux-dynamic-x86_64.tar.gz
tlclient.csh
tlclient.sh
)
source_armv7h=(
"$pkgname"-"$pkgver".tar.gz::https://www.cendio.com/downloads/clients/tl-"${pkgver//_/-}"-client-linux-dynamic-armhf.tar.gz
tlclient.csh
tlclient.sh
)
noextract=(
"$pkgname-$pkgver.tar.gz"
)
b2sums_x86_64=('a201d1ad34189f09023f9b1cd9839d414d8ccf36bcbc79380a831928b875182efb6ed11bd20ed2faa33ac386ba63374683eaadb3083d94591e27d4e9c85a245f'
'35f23ab16e8656e1d973391360ea52053c20227c7834454792f0c9d7e56dbe692a362c8de869a4b7371eecef3cfeeafe628803079fd4d31ee2157427e1305b1c'
'68bd5443a2f59f7e128ce8ea60ef3d1da62f43d9e40bf4e163e28c33bfd04ab9fc1b0d11859238d8568ea1c15f831bf2316171aebbaf3e88f715cf7d6a8a5e58')
b2sums_armv7h=('a201d1ad34189f09023f9b1cd9839d414d8ccf36bcbc79380a831928b875182efb6ed11bd20ed2faa33ac386ba63374683eaadb3083d94591e27d4e9c85a245f'
'35f23ab16e8656e1d973391360ea52053c20227c7834454792f0c9d7e56dbe692a362c8de869a4b7371eecef3cfeeafe628803079fd4d31ee2157427e1305b1c'
'68bd5443a2f59f7e128ce8ea60ef3d1da62f43d9e40bf4e163e28c33bfd04ab9fc1b0d11859238d8568ea1c15f831bf2316171aebbaf3e88f715cf7d6a8a5e58')
2025-09-07 18:08:46 +02:00
provides=("thinlinc-client=$pkgver")
replaces=('thinlinc-client')
2025-09-03 21:53:06 +02:00
prepare() {
mkdir "$srcdir/$pkgname-$pkgver"
2025-09-07 18:08:46 +02:00
bsdtar -xf "$pkgname-$pkgver.tar.gz" \
-C "$srcdir/$pkgname-$pkgver" \
--strip-components=1
2025-09-03 21:53:06 +02:00
}
package() {
depends+=(
alsa-lib
bash
glibc
hicolor-icon-theme
libpulse
libx11
openssh
pcsclite
pulse-native-provider
python
python-gobject
zlib
)
cd "$srcdir/$pkgname-$pkgver"
install -dm0755 "$pkgdir/usr"
cp -R --no-preserve=ownership lib/tlclient/share "$pkgdir/usr"
# cp -R --no-preserve=ownership lib/tlclient/locale "$pkgdir/usr/share"
install -dm0755 "$pkgdir/opt/thinlinc"
rm -R lib/tlclient/{lib,share}
cp -R --no-preserve=ownership ./* "$pkgdir/opt/thinlinc"
install -dm0755 "$pkgdir/usr/bin"
ln -s "/opt/thinlinc/bin/tlclient" "$pkgdir/usr/bin/tlclient"
2025-09-07 18:08:46 +02:00
ln -s "/opt/thinlinc/bin/tlclient-openconf" \
"$pkgdir/usr/bin/tlclient-openconf"
2025-09-03 21:53:06 +02:00
# Copy licenses
2025-09-07 18:08:46 +02:00
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" \
"$pkgdir/opt/thinlinc/lib/tlclient/open_source_licenses.txt"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" \
"$pkgdir/opt/thinlinc/lib/tlclient/EULA.txt"
2025-09-03 21:53:06 +02:00
# replicate the content of the .deb
install -Dm0644 -t "$pkgdir/etc/profile.d" "$srcdir"/tlclient.{sh,csh}
}
# vim: set ft=sh ts=4 sw=4 et: