# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xorgproto
version=2020.1
build=2sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/archive/individual/proto/xorgproto-$version.tar.bz2"
desc="Combined X.Org X11 Protocol headers"
requires="musl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  mkdir -p smbuild && cd smbuild
  meson .. --prefix="/" \
    --datadir=/lib

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

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