aboutsummaryrefslogtreecommitdiffstats
path: root/main/xrdp/APKBUILD
blob: 1f574c88e91980e58734863d17fb57c944765a59 (plain) (blame)
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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=xrdp
pkgver=0.9.10
pkgrel=0
pkgdesc="An open source RDP server"
url="https://www.xrdp.org/"
arch="all"
license="Apache-2.0"
makedepends="autoconf automake libtool openssl-dev libx11-dev
	libxfixes-dev libxrandr-dev libjpeg-turbo-dev fuse-dev linux-headers
	nasm"
subpackages="$pkgname-doc $pkgname-dev $pkgname-openrc"
source="https://github.com/neutrinolabs/xrdp/releases/download/v$pkgver/xrdp-$pkgver.tar.gz
	xrdp.initd
	dynamic-link.patch
	"


build() {
	local _simd_opt=""
	if [ "$CARCH" = "x86" ]; then
		_simd_opt="--without-simd"
	fi
	cd "$builddir"
	./bootstrap
	./configure \
		--prefix=/usr \
		--disable-static \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--sbindir=/usr/sbin \
		--enable-fuse \
		--disable-pam \
		--enable-tjpeg \
		$_simd_opt
	make
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install

	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	ln -s $pkgname $pkgdir/etc/init.d/$pkgname-sesman
}

sha512sums="ae84a66ec92de5ef4bf534c3b06772f52ea285b2408e1b9fab27c1fb79a20281771ef8480453bcc1bc793776f48f99ef3b04f6c6701914a62770608f23914973  xrdp-0.9.10.tar.gz
22b44398f4014ee67831051d1a1a859c6f4a601d75a03b33142ce7ea1e3f00082134337efb7da69e964f4a369d2b22114973221be2131f384f9459cc8e82fc13  xrdp.initd
c20de35c4623bcdeae2ba8a740f965b5f320c506ff9a7b9444ec0c8300af518fd3a84b8c28f6e775b7bab73bdac7433be9261d133fc767d953ac54cb2d3b0afd  dynamic-link.patch"