void-packages/srcpkgs/xorgproto/template

59 lines
2.5 KiB
Bash

# Template file for 'xorgproto'
pkgname=xorgproto
version=2020.1
revision=1
build_style=gnu-configure
configure_args="--enable-legacy"
hostmakedepends="xorg-util-macros"
short_desc="Combined X.Org X11 Protocol headers"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://xorg.freedesktop.org"
distfiles="${XORG_SITE}/proto/xorgproto-${version}.tar.gz"
checksum=6265b11b125df2f4853eec4895b14067d5621f813553fa077bebef20d7542418
replaces="bigreqsproto>=0 compositeproto>=0 damageproto>=0 dmxproto>=0 dri2proto>=0
dri3proto>=0 fixesproto>=0 fontsproto>=0 glproto>=0 inputproto>=0 kbproto>=0 presentproto>=0
printproto>=0 randrproto>=0 recordproto>=0 renderproto>=0 resourceproto>=0 scrnsaverproto>=0
videoproto>=0 xcmiscproto>=0 xextproto>=0 xf86dgaproto>=0 xf86driproto>=0 xf86miscproto>=0
xf86vidmodeproto>=0 xineramaproto>=0 xproto>=0 xf86bigfontproto>=0 fontcacheproto>=0"
provides="bigreqsproto-${version}_${revision} compositeproto-${version}_${revision}
damageproto-${version}_${revision} dmxproto-${version}_${revision}
dri2proto-${version}_${revision} dri3proto-${version}_${revision}
fixesproto-${version}_${revision} fontsproto-${version}_${revision}
glproto-${version}_${revision} inputproto-${version}_${revision}
kbproto-${version}_${revision} presentproto-${version}_${revision}
printproto-${version}_${revision} randrproto-${version}_${revision}
recordproto-${version}_${revision} renderproto-${version}_${revision}
resourceproto-${version}_${revision} scrnsaverproto-${version}_${revision}
videoproto-${version}_${revision} xcmiscproto-${version}_${revision}
xextproto-${version}_${revision} xf86dgaproto-${version}_${revision}
xf86driproto-${version}_${revision} xf86miscproto-${version}_${revision}
xf86vidmodeproto-${version}_${revision} xineramaproto-${version}_${revision}
xproto-${version}_${revision} xf86bigfontproto-${version}_${revision}
fontcacheproto-${version}_${revision}"
post_configure() {
# man/Xprint.7 is can't be generated thus remove the rule
sed -i Makefile -e "s;\(miscman_DATA =\).*;\1;"
}
post_install() {
for license in COPYING-* ; do
vlicense $license
done
for doc in *.txt ; do
vdoc $doc
done
vdoc PM_spec
rm -f ${DESTDIR}/usr/share/doc/${pkgname}/meson_options.txt
rm -f ${DESTDIR}/usr/include/X11/extensions/{apple,windows}*
rm -f ${DESTDIR}/usr/share/licenses/${pkgname}/COPYING-{apple,windows}wmproto
rm -f ${DESTDIR}/usr/share/pkgconfig/{apple,windows}wmproto.pc
# provided by libX11-devel
rm -f ${DESTDIR}/usr/include/X11/extensions/XKBgeom.h
}