blob: 80457091239f9327c99d35463dc6ecfa6f8100a7 (
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
|
# Maintainer:
# Contributor: Nathan Loewen <loewen.nathan@gmail.com>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Alexey Vasiliev <robbinton@gmail.com>
_pkgname="freerdp"
pkgname="$_pkgname-git"
pkgver=3.0.0beta4.r98.g32c65dbdf
pkgrel=1
pkgdesc="Free implementation of the Remote Desktop Protocol (RDP)"
arch=('i686' 'x86_64')
url="https://www.freerdp.com/"
license=('Apache')
depends=(
# extra/freerdp
glibc
libcups
libx11
libxcursor
libxext
libxdamage
libxfixes
libxkbcommon
libxi
libxinerama
libxkbfile
libxrandr
libxrender
libxtst
pcsclite
wayland
)
makedepends=(
# extra/freerdp
alsa-lib
cmake
docbook-xsl
ffmpeg
icu
krb5
libjpeg-turbo
libpulse
libusb
openssl
pam
systemd
xmlto
xorgproto
)
provides=(
# extra/freerdp
libfreerdp2.so
libfreerdp-client2.so
libfreerdp-server2
libfreerdp-shadow2.so
libfreerdp-shadow-subsystem2.so
libwinpr2.so
libwinpr-tools2.so
libuwac0.so
)
if [ x"$_pkgname" != x"$pkgname" ] ; then
# git package
depends+=(
'cjson'
'fuse3'
'pkcs11-helper'
'sdl2_ttf'
'webkit2gtk'
)
makedepends+=('git')
provides+=("$_pkgname")
conflicts+=("$_pkgname")
url="https://github.com/FreeRDP/FreeRDP"
source=("$_pkgname"::"git+$url.git")
sha256sums=('SKIP')
_pkgsrc="$_pkgname"
pkgver() {
cd "$srcdir/$_pkgsrc"
git describe --long --tags --exclude='*android*' --exclude='*ios*' | sed -E 's/^v//;s@-(alpha|beta|rc)@\1@;s/([^-]*-g)/r\1/;s/-/./g'
}
fi
build() {
local _cmake_options=(
-DCMAKE_INSTALL_PREFIX="/usr"
-DCMAKE_INSTALL_LIBDIR="/usr/lib"
# -DCMAKE_BUILD_TYPE=None
-DCMAKE_SKIP_INSTALL_RPATH=ON
-DPROXY_PLUGINDIR="/usr/lib/freerdp2/server/proxy/plugins"
-DWITH_DSP_FFMPEG=ON
-DWITH_FFMPEG=ON
-DWITH_PULSE=ON
-DWITH_CUPS=ON
-DWITH_PCSC=ON
-DWITH_ICU=ON
-DWITH_JPEG=ON
-DWITH_SERVER=ON
-DWITH_SWSCALE=ON
-DWITH_CHANNELS=ON
-DWITH_CLIENT_CHANNELS=ON
-DWITH_SERVER_CHANNELS=ON
-DCHANNEL_URBDRC_CLIENT=ON
-Wno-dev
-B build
-S "$_pkgsrc"
-DCMAKE_BUILD_TYPE=Release
-DWITH_X11=ON
-DWITH_WAYLAND=ON
)
cmake "${_cmake_options[@]}"
cmake --build build --verbose
}
check() {
ctest --test-dir build --output-on-failure || true
}
package() {
depends+=(
alsa-lib libasound.so
ffmpeg libavcodec.so libavutil.so libswresample.so libswscale.so
icu libicuuc.so
libjpeg-turbo libjpeg.so
libpulse libpulse.so
libusb libusb-1.0.so
openssl libcrypto.so libssl.so
pam libpam.so
systemd-libs libsystemd.so
)
DESTDIR="$pkgdir" cmake --install build
install -vDm0644 "$_pkgsrc"/{ChangeLog,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
}
|