void-packages/srcpkgs/libX11/template
dkwo 6acfca310e libX11: patch for new symbols
Apply upstream merge request to handle the new _EVDEVK xorgproto symbols,
so that xkbcomp does not generate hundreds of warnings.
See https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/79
2021-07-30 23:14:28 -03:00

42 lines
1 KiB
Bash

# Template file for 'libX11'
pkgname=libX11
version=1.7.2
revision=3
build_style=gnu-configure
configure_args="--enable-ipv6 --enable-xlocaledir --without-xmlto
--enable-static --enable-malloc0returnsnull"
hostmakedepends="pkg-config xorg-util-macros"
makedepends="xorgproto xtrans libxcb-devel"
short_desc="Base X libraries from Xorg"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="http://xorg.freedesktop.org/"
distfiles="${XORG_SITE}/lib/${pkgname}-${version}.tar.bz2"
checksum=1cfa35e37aaabbe4792e9bb690468efefbfbf6b147d9c69d6f90d13c3092ea6c
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libtool automake xorgproto xtrans"
pre_configure() {
autoreconf -fi
}
fi
do_configure() {
CFLAGS_FOR_BUILD="-fPIC" ./configure ${configure_args}
}
post_install() {
vlicense COPYING
}
libX11-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
vmove usr/share/man/man3
}
}