# Contributor: prspkt # Maintainer: prspkt pkgname=xorgproto pkgver=2019.2 pkgrel=2 pkgdesc="Combined X.Org X11 protocol headers" url="https://www.x.org" arch="noarch" license="BSD-2-Clause AND MIT AND X11" makedepends="meson util-macros" replaces="bigreqsproto compositeproto damageproto dri2proto dri3proto fixesproto fontsproto glproto inputproto kbproto presentproto printproto randrproto recordproto renderproto resourceproto scrnsaverproto videoproto xcmiscproto xextproto xf86bigfontproto xf86dgaproto xf86driproto xf86miscproto xf86vidmodeproto xineramaproto xproto " provides="bigreqsproto=$pkgver-r$pkgrel compositeproto=$pkgver-r$pkgrel damageproto=$pkgver-r$pkgrel dri2proto=$pkgver-r$pkgrel dri3proto=$pkgver-r$pkgrel fixesproto=$pkgver-r$pkgrel fontsproto=$pkgver-r$pkgrel glproto=$pkgver-r$pkgrel inputproto=$pkgver-r$pkgrel kbproto=$pkgver-r$pkgrel presentproto=$pkgver-r$pkgrel printproto=$pkgver-r$pkgrel randrproto=$pkgver-r$pkgrel recordproto=$pkgver-r$pkgrel renderproto=$pkgver-r$pkgrel resourceproto=$pkgver-r$pkgrel scrnsaverproto=$pkgver-r$pkgrel videoproto=$pkgver-r$pkgrel xcmiscproto=$pkgver-r$pkgrel xextproto=$pkgver-r$pkgrel xf86bigfontproto=$pkgver-r$pkgrel xf86dgaproto=$pkgver-r$pkgrel xf86driproto=$pkgver-r$pkgrel xf86miscproto=$pkgver-r$pkgrel xf86vidmodeproto=$pkgver-r$pkgrel xineramaproto=$pkgver-r$pkgrel xproto=$pkgver-r$pkgrel " source="https://xorg.freedesktop.org/archive/individual/proto/xorgproto-$pkgver.tar.bz2" build() { cd "$builddir" meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=plain \ --datadir=/usr/lib \ -Dlegacy=true \ . output ninja -C output } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C output install # cleanup rm -f "$pkgdir"/usr/include/X11/extensions/apple* rm -f "$pkgdir"/usr/include/X11/extensions/windows* rm -f "$pkgdir"/usr/lib/pkgconfig/apple* rm -f "$pkgdir"/usr/lib/pkgconfig/windows* rm -f "$pkgdir"/usr/include/X11/extensions/vldXvMC.h # libxvmc-dev >= 1.0.12-r0 rm -f "$pkgdir"/usr/include/X11/extensions/XKBgeom.h # libx11-dev >= 1.6.9-r0 } sha512sums="cbfdf6bb3d58d4d4e7788c9ed779402352715e9899f65594fbc527b3178f1dc5e03cebc8ba5a863b3c196a1a0f2026c2d0438207ca19f81f3c8b7da0c0667904 xorgproto-2019.2.tar.bz2"