# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=xorgxrdp
pkgver=0.2.6
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="b798b1bb610fa8e1c5280177593763f15aa031920f5ca03455eed1b873678fdb72c5745198ee39901c173b5cf6aa36caf05f5d04593ae602d59f18d523c0c030  xorgxrdp-0.2.6.tar.gz"
