# Template file for 'glslang'
pkgname=glslang
version=7.9.2888
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="python bison"
short_desc="Khronos reference front-end for GLSL, ESSL, and sample SPIR-V generator"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/KhronosGroup/glslang"
distfiles="https://github.com/KhronosGroup/glslang/archive/${version}.tar.gz"
checksum=cb66779d0e6b5f07f0445bd58289a24e56e12693e71d75c8fae3db31ffacaf8c

post_install() {
	sed -n '2,32p' < glslang/GenericCodeGen/CodeGen.cpp > LICENSE
	vlicense LICENSE
}

glslang-devel_package() {
	depends="glslang-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
	}
}
