# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=xorgxrdp
pkgver=0.2.3
pkgrel=0
pkgdesc="Xorg drivers for xrdp"
url="https://github.com/neutrinolabs/xorgxrdp"
arch="all !x86"
license="X11"
makedepends="xorg-server-dev xrdp-dev nasm"
subpackages="$pkgname-dev"
source="https://github.com/neutrinolabs/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

sha512sums="041754d67234055757fd13a4bf1b0e7c38f2b0a204a3bc672a72ed2e5bf0a7f71e92260dd258207d935cf952264149377fcd80c78c3cb87ff60c4b44c8ee9a51  xorgxrdp-0.2.3.tar.gz"
