void-packages/srcpkgs/shaderc/template
Lugubris d78cb0d201 Drop maintainership of orphaned packages
some packages were dropped but their maintainer= was not updated in template.
this will help new maintainers adopt these packages.

-> https://github.com/void-linux/void-packages/pull/13930#issuecomment-524610652
2019-08-25 21:16:43 +02:00

34 lines
1.1 KiB
Bash

# Template file for 'shaderc'
pkgname=shaderc
version=2019.0
revision=1
wrksrc="shaderc-${version}"
build_style=cmake
configure_args="-DSHADERC_SKIP_TESTS=ON"
hostmakedepends="python3"
makedepends="SPIRV-Tools-devel glslang-devel"
short_desc="Collection of tools, libraries and tests for shader compilation"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/google/shaderc"
distfiles="https://github.com/google/shaderc/archive/v${version}.tar.gz"
checksum=1018cd02be52295272fdbffa056ee24b881be277c83d039ad554d91230f4e11b
pre_configure() {
# Unbundle glslang, SPIRV-Headers, SPIRV-Tools
# also remove examples
sed -i -e '/add_subdirectory(third_party)/d' \
-e '/add_subdirectory(examples)/d' CMakeLists.txt
# Disable git versioning
sed -i -e '/build-version/d' glslc/CMakeLists.txt
# Create our own build-version.inc since we disabled git versioning
# need to keep this in sync with glslang and SPIRV-Tools versions
# this is displayed with 'glslc --version'
cat <<- EOF > glslc/src/build-version.inc
"shaderc 2019.0\n"
"SPIRV-Tools-2019.2\n"
"glslang-7.11.3214\n"
EOF
}