Date: Thursday, December 8, 2022 @ 13:58:46
Author: svenstaro
Revision: 463625
archrelease: copy trunk to staging-x86_64
Added:
glslang/repos/staging-x86_64/PKGBUILD
(from rev 463624, glslang/trunk/PKGBUILD)
Deleted:
glslang/repos/staging-x86_64/PKGBUILD
----------+
PKGBUILD | 149 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 72 insertions(+), 77 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-08 13:58:38 UTC (rev 463624)
+++ PKGBUILD 2022-12-08 13:58:46 UTC (rev 463625)
@@ -1,77 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <[email protected]>
-
-# Careful when upgrading this package! It usually breaks ABI without bumping
soname.
-pkgname=glslang
-pkgver=11.12.0
-pkgrel=2
-pkgdesc='OpenGL and OpenGL ES shader front end and validator'
-arch=('x86_64')
-url='https://github.com/KhronosGroup/glslang'
-license=('BSD')
-depends=('gcc-libs' 'python')
-makedepends=('cmake' 'ninja' 'git')
-options=('staticlibs')
-# Get the commits from known_good.json for every release
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz
-
$pkgname-fix-cmake-locations.patch::https://github.com/KhronosGroup/glslang/pull/3063.patch
-
git+https://github.com/KhronosGroup/SPIRV-Tools.git#commit=eb0a36633d2acf4de82588504f951ad0f2cecacb
-
git+https://github.com/KhronosGroup/SPIRV-Headers.git#commit=85a1ed200d50660786c1a88d9166e871123cce39)
-sha256sums=('7795a97450fecd9779f3d821858fbc2d1a3bf1dd602617d95b685ccbcabc302f'
- 'd5888f1750af014eccd6184d58e9ced2e8e203b6674d5ccd2a5cc9d2aab2e2a0'
- 'SKIP'
- 'SKIP')
-
-prepare() {
- # Sadly, glslang requires super specific versions of SPIRV headers and
- # spirv-tools and so I'm afraid that for the time being we'll have to use
- # their vendored version until we figure out a good way to use system
- # libraries.
- cp -r SPIRV-Tools ${pkgname}-${pkgver}/External/spirv-tools
- cp -r SPIRV-Headers
${pkgname}-${pkgver}/External/spirv-tools/external/spirv-headers
-
- cd ${pkgname}-${pkgver}
- patch -Np1 -i "$srcdir"/$pkgname-fix-cmake-locations.patch
-}
-
-build() {
- cd ${pkgname}-${pkgver}
- cmake \
- -Bbuild-shared \
- -GNinja \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=None \
- -DBUILD_SHARED_LIBS=ON
- ninja -Cbuild-shared
- cmake \
- -Bbuild-static \
- -GNinja \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=None \
- -DBUILD_SHARED_LIBS=OFF
- ninja -Cbuild-static
-}
-
-check() {
- cd ${pkgname}-${pkgver}
- ninja -Cbuild-shared test
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- DESTDIR="${pkgdir}" ninja -C build-shared install
- DESTDIR="${pkgdir}" ninja -C build-static install
-
- install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-
- cd "${pkgdir}"/usr/lib
- for lib in *.so; do
- ln -sf "${lib}" "${lib}.0"
- done
-
- # Delete the stuff that's been vendored in. It's not ideal but that's we'll
deal with for now.
- mv "${pkgdir}"/usr/bin/spirv-remap .
- rm -r
"${pkgdir}"/usr/{bin/spirv*,include/spirv-tools,lib/cmake/SPIRV-Tools*,lib/libSPIRV-*,lib/pkgconfig}
- mv spirv-remap "${pkgdir}"/usr/bin/spirv-remap
-}
-
-# vim: ts=2 sw=2 et:
Copied: glslang/repos/staging-x86_64/PKGBUILD (from rev 463624,
glslang/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-08 13:58:46 UTC (rev 463625)
@@ -0,0 +1,72 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+
+# Careful when upgrading this package! It usually breaks ABI without bumping
soname.
+pkgname=glslang
+pkgver=11.13.0
+pkgrel=1
+pkgdesc='OpenGL and OpenGL ES shader front end and validator'
+arch=('x86_64')
+url='https://github.com/KhronosGroup/glslang'
+license=('BSD')
+depends=('gcc-libs' 'python')
+makedepends=('cmake' 'ninja' 'git')
+options=('staticlibs')
+# Get the commits from known_good.json for every release
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz
+
git+https://github.com/KhronosGroup/SPIRV-Tools.git#commit=40f5bf59c6acb4754a0bffd3c53a715732883a12
+
git+https://github.com/KhronosGroup/SPIRV-Headers.git#commit=1d31a100405cf8783ca7a31e31cdd727c9fc54c3)
+sha256sums=('592c98aeb03b3e81597ddaf83633c4e63068d14b18a766fd11033bad73127162'
+ 'SKIP'
+ 'SKIP')
+
+prepare() {
+ # Sadly, glslang requires super specific versions of SPIRV headers and
+ # spirv-tools and so I'm afraid that for the time being we'll have to use
+ # their vendored version until we figure out a good way to use system
+ # libraries.
+ cp -r SPIRV-Tools ${pkgname}-${pkgver}/External/spirv-tools
+ cp -r SPIRV-Headers
${pkgname}-${pkgver}/External/spirv-tools/external/spirv-headers
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cmake \
+ -Bbuild-shared \
+ -GNinja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DBUILD_SHARED_LIBS=ON
+ ninja -Cbuild-shared
+ cmake \
+ -Bbuild-static \
+ -GNinja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DBUILD_SHARED_LIBS=OFF
+ ninja -Cbuild-static
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ ninja -Cbuild-shared test
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ DESTDIR="${pkgdir}" ninja -C build-shared install
+ DESTDIR="${pkgdir}" ninja -C build-static install
+
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+ cd "${pkgdir}"/usr/lib
+ for lib in *.so; do
+ ln -sf "${lib}" "${lib}.0"
+ done
+
+ # Delete the stuff that's been vendored in. It's not ideal but that's we'll
deal with for now.
+ mv "${pkgdir}"/usr/bin/spirv-remap .
+ rm -r
"${pkgdir}"/usr/{bin/spirv*,include/spirv-tools,lib/cmake/SPIRV-Tools*,lib/libSPIRV-*,lib/pkgconfig}
+ mv spirv-remap "${pkgdir}"/usr/bin/spirv-remap
+}
+
+# vim: ts=2 sw=2 et: