29 lines
894 B
Bash
29 lines
894 B
Bash
# Template file for 'glslang'
|
|
# Libraries are unversioned, beware of ABI breakage (rebuild shaderc on updates)
|
|
pkgname=glslang
|
|
version=8.13.3743
|
|
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=639ebec56f1a7402f2fa094469a5ddea1eceecfaf2e9efe361376a0f73a7ee2f
|
|
|
|
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
|
|
}
|
|
}
|