wget https://xorg.freedesktop.org/archive/individual/proto/xorgproto-2021.4.tar.bz2
tar -xf xorgproto-2021.4.tar.bz2
cd xorgproto-2021.4

export XORG_PREFIX="/usr"
export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
    --localstatedir=/var --disable-static"
export DESTDIR="$1"

mkdir build
cd    build

meson --prefix=$XORG_PREFIX -Dlegacy=true ..
ninja
ninja install