APP=xorgproto
VERSION=2020.1
BUILD=1sml
HOMEPAGE="https://xorg.freedesktop.org/"
DOWNLOAD="https://xorg.freedesktop.org/archive/individual/proto/xorgproto-2020.1.tar.bz2"
DESC="combined X.Org X11 Protocol headers"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  mkdir -p smbuild && cd smbuild
  meson .. --prefix="/"

  ninja
  DESTDIR="$PKG" ninja install

  cp ../COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
c51de1638506a2ac8cba823ce216f5d26ffa00b37e86d30939df06446e79f842fa0a8e7317a44fcbf453e5509f264b0d1e56664ab239669aab3cd3d086c57dbc  xorgproto-2020.1.tar.lz
"
