diff --git a/x11-libs/libxcb-1.17.0.PKGBUILD b/x11-libs/libxcb-1.17.0.PKGBUILD new file mode 100644 index 0000000..7e415d2 --- /dev/null +++ b/x11-libs/libxcb-1.17.0.PKGBUILD @@ -0,0 +1,41 @@ +pkgname=libxcb +pkgver=1.17.0 +pkgdesc="X11 client-side library" +arch=('x86_64') +homepage="https://gitlab.freedesktop.org/xorg/lib/libxcb" +depends=('xcb-proto' 'glibc') +makedepends=('libXdmcp' 'libXau' 'libxslt' 'python' 'xorg-proto') +license=('X11') +sources=("${pkgname}-${pkgver}.tar.xz") +urls=("https://xorg.freedesktop.org/archive/individual/lib/${sources[0]}") +md5sums=("96565523e9f9b701fcb35d31f1d4086e") + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + ./configure --prefix=/usr \ + --enable-xinput \ + --enable-xkb \ + --disable-static \ + --disable-devel-docs \ + --disable-selinux \ + --without-doxygen + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make +} + +src_check() { + make -k check +} + +src_install() { + make DESTDIR="$pkgdir" install + install -m755 -d "$pkgdir/usr/share/licenses/$pkgname" + install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname" + + mv -vf "${pkgdir}/usr/share/doc/"${pkgname}{,-${pkgver}} +} + +# vim:ft=sh syn=sh et sw=2: