1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
3 # Careful when upgrading this package! It usually breaks ABI without bumping soname.
7 pkgdesc='OpenGL and OpenGL ES shader front end and validator'
9 url='https://github.com/KhronosGroup/glslang'
12 makedepends=('cmake' 'ninja' 'git' 'python' 'spirv-tools' 'spirv-headers')
13 options=('staticlibs')
14 # Get the commits from known_good.json for every release
15 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz)
16 sha256sums=('26c216c3062512c018cbdd752224b8dad703b7e5bb90bf338ba2dbb5d4f11438')
19 cd ${pkgname}-${pkgver}
20 export CXXFLAGS+=" -ffat-lto-objects"
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DCMAKE_BUILD_TYPE=Release \
26 -DBUILD_SHARED_LIBS=ON
31 -DCMAKE_INSTALL_PREFIX=/usr \
32 -DCMAKE_BUILD_TYPE=Release \
33 -DBUILD_SHARED_LIBS=OFF
38 cd ${pkgname}-${pkgver}
39 DESTDIR="${pkgdir}" ninja -C build-shared install
40 DESTDIR="${pkgdir}" ninja -C build-static install
42 install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
44 cd "${pkgdir}"/usr/lib
46 ln -sf "${lib}" "${lib}.0"