void-packages/srcpkgs/glslang/template
Nathan Owens 081f39916f glslang: update to 7.13.3496
Now only builds with python3
2019-11-11 07:18:06 +01:00

28 lines
813 B
Bash

# Template file for 'glslang'
pkgname=glslang
version=7.13.3496
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="python3 bison"
short_desc="Khronos reference front-end for GLSL, ESSL, and sample SPIR-V generator"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/KhronosGroup/glslang"
distfiles="https://github.com/KhronosGroup/glslang/archive/${version}.tar.gz"
checksum=170d1538a670af4cae300e875d7cda9744b1acee1ab7252ecf7c4004186bb922
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"
vmove usr/lib/cmake
}
}