aboutsummaryrefslogtreecommitdiffstats
path: root/main/xrdp/APKBUILD
blob: 74ebd870d10c143479f0020bb9996e1b56ca528a (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=xrdp
pkgver=0.8.0
pkgrel=0
pkgdesc="An open source RDP server"
url="http://sourceforge.net/projects/xrdp/"
arch="all"
license="GPLv2"
depends=""
depends_dev=""
makedepends="$depends_dev autoconf automake libtool openssl-dev libx11-dev
	libxfixes-dev libxrandr-dev libjpeg-turbo-dev fuse-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/neutrinolabs/xrdp/archive/v$pkgver.tar.gz
	xrdp.initd
	musl-fixes.patch
	cb4f2998992d1d39fa4629c2187832249c0a5932.patch"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./bootstrap || return 1
	./configure \
		--prefix=/usr \
		--disable-static \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--sbindir=/usr/sbin \
		--enable-nopam \
		--enable-fuse \
		--enable-jpeg \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install || return 1
	find "$pkgdir" -name \*.la -delete

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

md5sums="2b0c3affc65ee77ad251514c62896757  xrdp-0.8.0.tar.gz
9a70abdbf18d381a4762b68e5e6194de  xrdp.initd
9e98f8a2c17962a014a3b9321714f36d  musl-fixes.patch
ed169e5556a767cba6f49fec7fa909a5  cb4f2998992d1d39fa4629c2187832249c0a5932.patch"
sha256sums="555f78980a3100d5bc8ea7cc6e3c49dd32dbeae9b686d90dd4e21d2c93a0d422  xrdp-0.8.0.tar.gz
052fbd34eb2cfb90b625d07d097b06a3754ad22864fac8489e5a8fd92e55dddf  xrdp.initd
40807344e6a783133023ded613e42406052868b73ec0bddeb33c20b7222fe5bc  musl-fixes.patch
706a13667313dae1b6b29bcb64c6251a82afbaf3016e82ac8dab59b1a7cb83c0  cb4f2998992d1d39fa4629c2187832249c0a5932.patch"
sha512sums="bd4dcbdc9e8d7eff75f5e6e58a1bc2a1edd08748b9e32c3060cce3186dc3c9277c3c5f3962cbab67b5e7f76941a8f16b231a9e4a15f33560f52c6da0caaeb960  xrdp-0.8.0.tar.gz
22b44398f4014ee67831051d1a1a859c6f4a601d75a03b33142ce7ea1e3f00082134337efb7da69e964f4a369d2b22114973221be2131f384f9459cc8e82fc13  xrdp.initd
49f55afbbe8b837bfcb4ae47fc23321b3c7f66db1ccd9c3844e26c19e736b47e8471f7d4ab9ae4e5b104b23d46c303d8fc351da664ac74878926471d3105cb11  musl-fixes.patch
15abebd177aa11b7a3576b5fd0ac67707cf722669b49d038492e345768a1e8881bcf6ff1dbfb62c5f7cd07daf56560d942ad8682305f1d650c400ced334adb7f  cb4f2998992d1d39fa4629c2187832249c0a5932.patch"