blob: 82bbabbbcafff9f17461e12c4ca338965f3621c0 (
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
|
# Maintainer: Jat <chat@jat.email>
_pkgname='xorgxrdp'
pkgname="$_pkgname-nvidia"
pkgver=0.2.18.r49.g3d30c7a
pkgrel=1
pkgdesc='Xorg drivers for xrdp, with NVIDIA GPU support.'
arch=('i686' 'x86_64')
url='https://github.com/neutrinolabs/xorgxrdp'
license=('MIT')
provides=("$_pkgname")
conflicts=("$_pkgname")
depends=('NVIDIA-MODULE')
makedepends=('nasm' 'xorg-server-devel' 'xrdp')
options=('staticlibs')
source=("git+https://github.com/neutrinolabs/xorgxrdp#branch=gfx_mainline_merge")
sha256sums=('SKIP')
install="$pkgname.install"
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed -E 's,^[^0-9]*,,;s,([0-9]*-g),r\1,;s,-,.,g'
}
prepare() {
cd "$srcdir/$_pkgname"
busid=$(nvidia-xconfig --query-gpu-info | grep -im1 busid | awk '{print $NF}')
perl -i -pe 's/(?<=BusID ").+(?=")/'"$busid"'/' xrdpdev/xorg_nvidia.conf
}
build() {
cd "$srcdir/$_pkgname"
./bootstrap
./configure --prefix="/usr"
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
install -Dm644 'COPYING' -t "$pkgdir/usr/share/licenses/$_pkgname"
}
|