# Contributor: Sören Tempel # Contributor: Bartłomiej Piotrowski # Maintainer: Valery Kartel pkgname=wayland pkgver=1.15.0 pkgrel=0 pkgdesc="A computer display server protocol" url="http://wayland.freedesktop.org" arch=all license="MIT" depends="$pkgname-libs-client $pkgname-libs-cursor $pkgname-libs-egl $pkgname-libs-server" depends_dev="libffi-dev expat-dev" makedepends="$depends_dev doxygen xmlto graphviz grep libxml2-dev bash" subpackages="$pkgname-dev $pkgname-libs-client:_libs $pkgname-libs-egl:_libs $pkgname-libs-cursor:_libs $pkgname-libs-server:_libs" source="https://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz tests-ignore-debugger.patch tests-fix-memory-leak.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-documentation \ --disable-static make } check() { cd "$builddir" make check WAYLAND_TEST_IGNORE_DEBUGGER=1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install } dev() { mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$pkgdir"/usr/share \ "$subpkgdir"/usr default_dev } _libs() { depends= local name=${subpkgname#$pkgname-libs-} pkgdesc="$pkgdesc ($name library)" case "$name" in egl) replaces="mesa-libwayland-egl";; esac mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*-$name.so.* "$subpkgdir"/usr/lib } sha512sums="f908917f1b575d2dc4d9770d3303e2637e8744fcb5c81feb2af2fe82cc51f54e22beaddfbe775fcf9623584169b7a062c75076132abeb888717180bfab53b3a8 wayland-1.15.0.tar.xz 0f65a55265e9134ab08cabf67f9d1919c85c4cb6b69129e78bc6c50057cafcaf143007716a0fa73b2eb43d6b605944c320a12a36dbb5f15fcd2f5e770248c480 tests-ignore-debugger.patch 7527020c7d2b32f0a01ef0e014d999430cd24caf3648d820efeb9a35bfaed3d308f59932691de16700e8c1b91f6816fc92524d058601586ad01f64a4a07141c4 tests-fix-memory-leak.patch"