[arch-commits] Commit in glslang/repos (testing-x86_64 testing-x86_64/PKGBUILD)

2022-04-11 Thread Sven-Hendrik Haase via arch-commits
Date: Monday, April 11, 2022 @ 18:37:30
  Author: svenstaro
Revision: 442301

archrelease: copy trunk to testing-x86_64

Added:
  glslang/repos/testing-x86_64/
  glslang/repos/testing-x86_64/PKGBUILD
(from rev 442300, glslang/trunk/PKGBUILD)

--+
 PKGBUILD |   50 ++
 1 file changed, 50 insertions(+)

Copied: glslang/repos/testing-x86_64/PKGBUILD (from rev 442300, 
glslang/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-04-11 18:37:30 UTC (rev 442301)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+
+# Careful when upgrading this package! It usually breaks ABI without bumping 
soname.
+pkgname=glslang
+pkgver=11.9.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')
+makedepends=('cmake' 'ninja' 'git' 'python' 'spirv-tools' 'spirv-headers')
+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)
+sha256sums=('d5744adba19eef9ad3d73f524226b39fec559d94cb582cd442e3c5de930004b2')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  export CXXFLAGS+=" -ffat-lto-objects"
+  cmake \
+-Bbuild-shared \
+-GNinja \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DBUILD_SHARED_LIBS=ON
+  ninja -Cbuild-shared
+  cmake \
+-Bbuild-static \
+-GNinja \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DBUILD_SHARED_LIBS=OFF
+  ninja -Cbuild-static
+}
+
+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
+}
+
+# vim: ts=2 sw=2 et:



[arch-commits] Commit in glslang/repos (testing-x86_64 testing-x86_64/PKGBUILD)

2021-11-29 Thread Sven-Hendrik Haase via arch-commits
Date: Monday, November 29, 2021 @ 12:11:36
  Author: svenstaro
Revision: 429442

archrelease: copy trunk to testing-x86_64

Added:
  glslang/repos/testing-x86_64/
  glslang/repos/testing-x86_64/PKGBUILD
(from rev 429441, glslang/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: glslang/repos/testing-x86_64/PKGBUILD (from rev 429441, 
glslang/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-11-29 12:11:36 UTC (rev 429442)
@@ -0,0 +1,67 @@
+# Maintainer: Sven-Hendrik Haase 
+
+# Careful when upgrading this package! It usually breaks ABI without bumping 
soname.
+pkgname=glslang
+pkgver=11.7.1
+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#commit=1fbed83c8aab8517d821fcb4164c08567951938f
+
git+https://github.com/KhronosGroup/SPIRV-Headers#commit=449bc986ba6f4c5e10e32828783f9daef2a77644)
+sha256sums=('ab2e2ddc507bb418b9227cbe6f443eb06e89e2387944f42026d82c0b4ef79b0a'
+'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=Release \
+-DBUILD_SHARED_LIBS=ON
+  ninja -Cbuild-shared
+  cmake \
+-Bbuild-static \
+-GNinja \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DBUILD_SHARED_LIBS=OFF
+  ninja -Cbuild-static
+}
+
+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:



[arch-commits] Commit in glslang/repos (testing-x86_64 testing-x86_64/PKGBUILD)

2021-08-27 Thread Sven-Hendrik Haase via arch-commits
Date: Saturday, August 28, 2021 @ 03:02:44
  Author: svenstaro
Revision: 422620

archrelease: copy trunk to testing-x86_64

Added:
  glslang/repos/testing-x86_64/
  glslang/repos/testing-x86_64/PKGBUILD
(from rev 422619, glslang/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: glslang/repos/testing-x86_64/PKGBUILD (from rev 422619, 
glslang/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-08-28 03:02:44 UTC (rev 422620)
@@ -0,0 +1,67 @@
+# Maintainer: Sven-Hendrik Haase 
+
+# Careful when upgrading this package! It usually breaks ABI without bumping 
soname.
+pkgname=glslang
+pkgver=11.6.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#commit=1fbed83c8aab8517d821fcb4164c08567951938f
+
git+https://github.com/KhronosGroup/SPIRV-Headers#commit=449bc986ba6f4c5e10e32828783f9daef2a77644)
+sha256sums=('99ecd3a0c2c2219293d76723846f762a9f3e7dd0dc2a4f346d0fc3a05a0ce000'
+'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=Release \
+-DBUILD_SHARED_LIBS=ON
+  ninja -Cbuild-shared
+  cmake \
+-Bbuild-static \
+-GNinja \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DBUILD_SHARED_LIBS=OFF
+  ninja -Cbuild-static
+}
+
+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:



[arch-commits] Commit in glslang/repos (testing-x86_64 testing-x86_64/PKGBUILD)

2021-04-26 Thread Sven-Hendrik Haase via arch-commits
Date: Monday, April 26, 2021 @ 15:39:15
  Author: svenstaro
Revision: 413903

archrelease: copy trunk to testing-x86_64

Added:
  glslang/repos/testing-x86_64/
  glslang/repos/testing-x86_64/PKGBUILD
(from rev 413902, glslang/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: glslang/repos/testing-x86_64/PKGBUILD (from rev 413902, 
glslang/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-04-26 15:39:15 UTC (rev 413903)
@@ -0,0 +1,67 @@
+# Maintainer: Sven-Hendrik Haase 
+
+# Careful when upgrading this package! It usually breaks ABI without bumping 
soname.
+pkgname=glslang
+pkgver=11.4.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#commit=dc72924cb31cd9f3dbc3eb47e9d926cf641e3a07
+
git+https://github.com/KhronosGroup/SPIRV-Headers#commit=dafead1765f6c1a5f9f8a76387dcb2abe4e54acd)
+sha256sums=('9bae79c2b640b60474f8944a5ab4aff3af990074636ea2a0a3c97cb86be61dfa'
+'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=Release \
+-DBUILD_SHARED_LIBS=ON
+  ninja -Cbuild-shared
+  cmake \
+-Bbuild-static \
+-GNinja \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DBUILD_SHARED_LIBS=OFF
+  ninja -Cbuild-static
+}
+
+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:


[arch-commits] Commit in glslang/repos (testing-x86_64 testing-x86_64/PKGBUILD)

2021-03-13 Thread Sven-Hendrik Haase via arch-commits
Date: Sunday, March 14, 2021 @ 05:14:54
  Author: svenstaro
Revision: 409856

archrelease: copy trunk to testing-x86_64

Added:
  glslang/repos/testing-x86_64/
  glslang/repos/testing-x86_64/PKGBUILD
(from rev 409855, glslang/trunk/PKGBUILD)

--+
 PKGBUILD |   58 ++
 1 file changed, 58 insertions(+)

Copied: glslang/repos/testing-x86_64/PKGBUILD (from rev 409855, 
glslang/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-03-14 05:14:54 UTC (rev 409856)
@@ -0,0 +1,58 @@
+# Maintainer: Sven-Hendrik Haase 
+
+# Careful when upgrading this package! It usually breaks ABI without bumping 
soname.
+pkgname=glslang
+pkgver=11.2.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')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz)
+sha256sums=('8ff2fcf9b054e4a4ef56fcd8a637322f827b2b176a592a618d63672ddb896e06')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  # 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.
+  ./update_glslang_sources.py
+  cmake \
+-Bbuild-shared \
+-GNinja \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DBUILD_SHARED_LIBS=ON
+  ninja -Cbuild-shared
+  cmake \
+-Bbuild-static \
+-GNinja \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_BUILD_TYPE=Release \
+-DBUILD_SHARED_LIBS=OFF
+  ninja -Cbuild-static
+}
+
+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: