# Maintainer: PktSurf <smlinux@pktsurf.in>
app=glslang
version=1.3.268
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/releases/individual/lib/libICE-$version.tar.bz2"
desc="OpenGL and OpenGL ES shader front end and validato"
requires="xorgproto xorg-macros xtrans"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf glslang-vulkan-sdk-$version

  tar xf $srcdir/glslang-vulkan-sdk-$version.tar.?z*
  cd glslang-vulkan-sdk-$version
  fixbuilddirpermissions
}

build() {
  mkdir -p smbuild && cd smbuild
  cmake .. \
  -DCMAKE_BUILD_TYPE=None \
  -DCMAKE_INSTALL_PREFIX="" \
  -DCMAKE_INSTALL_LIBDIR=lib \
  -DBUILD_SHARED_LIBS=On \
  -DENABLE_OPT=0

  make
  make install DESTDIR=$pkg

  cp ../LICENSE* $pkgdocs/

  mkfinalpkg
}

sha512sums="
623fb8070a54be2068f9ea1ee80c1fc7ba0be314213b5f691a482241c76df75baa26d40f9c2ca2f8de3d247965b15203d82cbd69d8e888e18dfe4533c2a79abb  glslang-vulkan-sdk-1.3.268.tar.lz
"