# Maintainer: PktSurf <smlinux@pktsurf.in>
app=wayland
version=1.18.0
build=1sml
homepage="https://wayland.freedesktop.org/"
download="https://wayland.freedesktop.org/releases/wayland-$version.tar.xz"
desc="Replacement for the Xorg server protocol"
requires="expat libxml2 libffi"

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-static \
    --disable-documentation

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
6bec8c334e2f2aae976afa24501b2449206834795e60b780629ec2f1736ecf18c358306f4d325d006e2d6d937f50dce5798d233d5c8a1949f66a543b34e7eec2  wayland-1.18.0.tar.lz
"
