# Maintainer: PktSurf <smlinux@pktsurf.in>
app=wayland-protocols
version=1.25
build=1sml
homepage="https://wayland.freedesktop.org/"
download="https://wayland.freedesktop.org/releases/wayland-protocols-$version.tar.xz"
desc="Specifications of extended wayland protocols"
requires="wayland"

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="/" 

  ninja
  DESTDIR=$pkg ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
3df7015bae32665bdf7a454eec9707f532b4b22f65ba2e44c5097c135bd28f5fb83e3ae01dceaab8ee31e9369039c70ddc345c136ae1d06b7f76e74d3ded0a26  wayland-protocols-1.25.tar.lz
"
