summaryrefslogtreecommitdiff
path: root/community/freerdp/APKBUILD
blob: 14a08210a1180c43d3c3e0f19e304123bf077411 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=freerdp
_pkgname=FreeRDP
pkgver=2.11.4
pkgrel=0
pkgdesc="FreeRDP client"
url="https://www.freerdp.com/"
arch="all"
license="Apache-2.0"
options="!check" # As of 2.0.0_rc4 no test suite is available
makedepends="
	alsa-lib-dev
	bsd-compat-headers
	cmake
	cups-dev
	gsm-dev
	gst-plugins-base-dev
	libjpeg-turbo-dev
	libusb-dev
	libxcursor-dev
	libxdamage-dev
	libxi-dev
	libxinerama-dev
	libxkbcommon-dev
	libxkbfile-dev
	libxv-dev
	linux-headers
	openssl-dev>3
	samurai
	wayland-dev
	"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/FreeRDP/FreeRDP/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

# backwards compat since now merged into main package
provides="freerdp-plugins=$pkgver-r$pkgrel"

# secfixes:
#   2.9.0-r0:
#     - CVE-2022-39316
#     - CVE-2022-39317
#     - CVE-2022-39318
#     - CVE-2022-39319
#     - CVE-2022-39320
#     - CVE-2022-39347
#     - CVE-2022-41877
#   2.4.1-r0:
#     - CVE-2021-41159
#     - CVE-2021-41160
#   2.2.0-r0:
#     - CVE-2020-15103
#   2.1.2-r0:
#     - CVE-2020-4033
#     - CVE-2020-4031
#     - CVE-2020-4032
#     - CVE-2020-4030
#     - CVE-2020-11099
#     - CVE-2020-11098
#     - CVE-2020-11097
#     - CVE-2020-11095
#     - CVE-2020-11096
#   2.0.0-r1:
#     - CVE-2020-13398
#     - CVE-2020-13397
#     - CVE-2020-13396
#   2.0.0-r0:
#     - CVE-2020-11521
#     - CVE-2020-11522
#     - CVE-2020-11523
#     - CVE-2020-11524
#     - CVE-2020-11525
#     - CVE-2020-11526
#   2.0.0_rc4-r0:
#     - CVE-2018-8786
#     - CVE-2018-8787
#     - CVE-2018-8788
#     - CVE-2018-8789

build() {
	export CFLAGS="$CFLAGS -D_BSD_SOURCE"
	case "$CARCH" in
		ppc64le) ;; # https://sourceware.org/bugzilla/show_bug.cgi?id=30824
		*) CFLAGS="$CLFAGS -flto=auto";;
	esac
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DWITH_ALSA=ON \
		-DWITH_CUPS=ON \
		-DWITH_CHANNELS=ON \
		-DBUILTIN_CHANNELS=OFF \
		-DWITH_DIRECTFB=OFF \
		-DWITH_FFMPEG=OFF \
		-DWITH_GSM=ON \
		-DWITH_GSTREAMER_1_0=ON \
		-DWITH_IPP=OFF \
		-DWITH_JPEG=ON \
		-DWITH_OPENSSL=ON \
		-DWITH_PCSC=OFF \
		-DWITH_PULSE=OFF \
		-DWITH_WAYLAND=ON \
		-DWITH_SERVER=ON \
		-DWITH_X11=ON \
		-DWITH_XCURSOR=ON \
		-DWITH_XEXT=ON \
		-DWITH_XKBFILE=ON \
		-DWITH_XI=ON \
		-DWITH_XINERAMA=ON \
		-DWITH_XRENDER=ON \
		-DWITH_XV=ON \
		-DWITH_ZLIB=ON \
		-DWITH_NEON=OFF
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
8bdc3958bef8a17bc8bdb1d3376e38bd7f77eff788a873da5c26e34c9a9aecd7a0e33429c9011322f8cb7d3c715fde2141c619c45a9f8f4c69da770f1945dddb  freerdp-2.11.4.tar.gz
"