pkgname=glslang pkgver=15.0.0 pkgrel=1 pkgdesc="OpenGL and OpenGL ES shader front end and validator" arch=('x86_64') url="https://github.com/KhronosGroup/glslang" license=('BSD-3-Clause') depends=('gcc-libs' 'spirv-tools') makedepends=('cmake' 'ninja' 'python') options=('!staticlibs') source=(https://github.com/KhronosGroup/glslang/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(c31c8c2e89af907507c0631273989526ee7d5cdf7df95ececd628fd7b811e064) build() { cd ${pkgname}-${pkgver} export CXXFLAGS+=" -ffat-lto-objects" local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DALLOW_EXTERNAL_SPIRV_TOOLS=ON -DBUILD_SHARED_LIBS=ON -DGLSLANG_TESTS=ON -GNinja ) cmake ${cmake_args[@]} ninja -C flarebird-build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} ninja -C flarebird-build install }