blob: a16c9b132f0149767feb10b8c03ae322ef3a2e0c (
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
|
# Maintainer: Jat <chat@jat.email>
_pkgname=xorgxrdp
pkgname=xorgxrdp-glamor
pkgver=0.10.1
pkgrel=1
pkgdesc="Xorg drivers for xrdp, with glamor enabled. Only works on Intel and AMD GPUs."
arch=('i686' 'x86_64' 'armv6h' 'armv7l' 'aarch64')
url="https://github.com/neutrinolabs/xorgxrdp"
license=('X11')
provides=("$_pkgname")
conflicts=("$_pkgname")
depends=('xorg-server')
makedepends=('nasm' 'xorg-server-devel' 'xrdp')
checkdepends=('check' 'xorg-xdpyinfo')
options=('staticlibs')
source=(
"$url/archive/refs/tags/v$pkgver.tar.gz"
'glamor.patch'
)
sha256sums=(
'4cff18d1095d0fe2a177834a089ff9759e758f924ee3332b71f508f7aec9ffbe'
'10d289d1a11c9a5a8b4c6af534c2f9e7900ae2b4351860a063ba572010d95912'
)
prepare() {
cd "$srcdir/$_pkgname-$pkgver"
# https://github.com/neutrinolabs/xrdp/issues/1029#issuecomment-724105386
patch -p1 -i"$srcdir/glamor.patch"
}
build() {
cd "$srcdir/$_pkgname-$pkgver"
./bootstrap
CFLAGS="$CFLAGS -ffat-lto-objects" \
./configure --prefix=/usr \
--enable-glamor
make
}
check() {
cd "$srcdir/$_pkgname-$pkgver"
# https://github.com/neutrinolabs/xorgxrdp/pull/308
XORG=/usr/lib/Xorg make check
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 'COPYING' -t "$pkgdir/usr/share/licenses/$_pkgname"
}
|