blob: df8fe5289edae147b44e73fc2659cd35b96c2070 (
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
|
# Maintainer: Cebtenzzre <cebtenzzre (at) gmail (dot) com>
pkgname=thinlinc-server
pkgver=4.17.0
pkgrel=1
pkgdesc="Cendio ThinLinc Linux remote desktop server"
arch=('x86_64')
url="http://www.cendio.com/"
license=('custom')
install=${pkgname}.install
depends=('dbus' 'ghostscript' 'glibc' 'glib2' 'hicolor-icon-theme' 'iproute2'
'libasyncns' 'libcap' 'libsndfile' 'libx11' 'libxcb' 'libxcrypt-compat'
'nspr' 'nss' 'pam' 'procps-ng' 'python' 'python-gobject' 'rtkit'
'smtp-forwarder' 'systemd' 'xdg-utils' 'xorg-xauth' 'zlib' 'python-gssapi'
'python-six' 'gtk3' 'gdk-pixbuf2' 'python-cairo' 'pango' 'python-numpy' 'xorg-xhost'
'xdg-utils')
optdepends=('apache: Web integration'
'mod_nss: Web integration'
'python-markdown: Web integration'
'python-pygments: Web integration'
'nfs-utils: Local drive redirection'
'python-ldap: LDAP integration tools',
'libpulse: Audio redirection',
'libcups: Printer redirection',
'krb5: Kerberos integration')
_archive_name=tl-${pkgver}-server
source=("${_archive_name}.zip::https://www.cendio.com/downloads/server/tl-${pkgver}-server.zip"
'LICENSE'
'tlwebaccess.service'
'tlwebadm.service'
'vsmagent.service'
'vsmserver.service')
sha256sums=('91a0da2575d17fab075e27b1e09dee6fff6f03870beb6938d28ff5f5c2a5378a'
'179583f1e2f61a9a75a99bbe8bb988e35a0216fc2ddcbd4c85ad8bdc70c3149e'
'3d59ff1c0db479fc4266d67916c9f64050e061b874ccca79a2ac3894f4ba6e25'
'ff22ea3833eedb4338eeab6d5ce10fa823b9c78ebab1d47152c073075a6ddeb1'
'43db698879addc8fc7d54d554a50cabcdc753fbb3d95cf890c0178b4c3db3254'
'26bcc6f900078c80f30f5092ef8d6b7215dd67c90dcae3cc274a5db463b9c5b9')
_extract_dir="extract"
prepare()
{
cd "${srcdir}/${_archive_name}/packages"
mkdir -p "${_extract_dir}"
for rpm in *${CARCH}*rpm; do
bsdtar -C "${_extract_dir}" -xf "${rpm}"
done
}
package()
{
cd "${srcdir}/${_archive_name}/packages/${_extract_dir}"
rm -Rf "etc/init.d"
cp -aR etc/ opt/ usr/ var/ "$pkgdir"
install -dm755 "$pkgdir"/usr/lib
#cp -aR libs/* "$pkgdir"/usr/lib
cd "$srcdir/${_archive_name}"
cp -aR libs/etc/* "$pkgdir"/etc
cp -aR libs/libexec/tl-ssh* "$pkgdir"/opt/thinlinc/bin
cp -aR libs/modules/* "$pkgdir"/opt/thinlinc/modules/
cp -aR libs/share/* "$pkgdir"/usr/share/
rm -rf "$pkgdir/usr/lib64/"
rm -rf "$pkgdir/usr/lib/.build-id"
ln -s "/opt/thinlinc/modules" "$pkgdir/usr/lib/$pkgname"
cd "$srcdir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -Dm644 tlwebaccess.service "$pkgdir"/usr/lib/systemd/system/tlwebaccess.service
install -Dm644 tlwebadm.service "$pkgdir"/usr/lib/systemd/system/tlwebadm.service
install -Dm644 vsmagent.service "$pkgdir"/usr/lib/systemd/system/vsmagent.service
install -Dm644 vsmserver.service "$pkgdir"/usr/lib/systemd/system/vsmserver.service
}
|