[arch-commits] Commit in shaderc/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Sun Dec 26 10:12:33 UTC 2021
Date: Sunday, December 26, 2021 @ 10:12:33
Author: arojas
Revision: 433124
archrelease: copy trunk to extra-x86_64
Added:
shaderc/repos/extra-x86_64/PKGBUILD
(from rev 433123, shaderc/trunk/PKGBUILD)
Deleted:
shaderc/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 106 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 53 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-26 10:12:24 UTC (rev 433123)
+++ PKGBUILD 2021-12-26 10:12:33 UTC (rev 433124)
@@ -1,53 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Daniel M. Capella <polycitizen at gmail.com>
-# Contributor: Bin Jin <bjin at ctrl-d.org>
-
-pkgname=shaderc
-pkgver=2021.2
-pkgrel=1
-pkgdesc='Collection of tools, libraries and tests for shader compilation'
-url='https://github.com/google/shaderc'
-arch=('x86_64')
-license=('Apache')
-depends=('glibc' 'gcc-libs' 'glslang' 'spirv-tools')
-makedepends=('asciidoctor' 'cmake' 'ninja' 'python' 'spirv-headers')
-provides=('libshaderc_shared.so')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/google/shaderc/archive/v${pkgver}.tar.gz)
-sha512sums=('89f6e7f7a197e90e2996eec8f99aebb3f2f8dbbb7f71198d6fd5f13256873f51ac8912cc8170869fbfdc33e089b27d14553e81f9d7fba4c82356363fe6f7e486')
-
-prepare() {
- cd ${pkgname}-${pkgver}
-
- # de-vendor libs and disable git versioning
- sed '/examples/d;/third_party/d' -i CMakeLists.txt
- sed '/build-version/d' -i glslc/CMakeLists.txt
- cat <<- EOF > glslc/src/build-version.inc
-"${pkgver}\\n"
-"$(pacman -Q spirv-tools|cut -d \ -f 2|sed 's/-.*//')\\n"
-"$(pacman -Q glslang|cut -d \ -f 2|sed 's/-.*//')\\n"
-EOF
-}
-
-build() {
- cd ${pkgname}-${pkgver}
- cmake \
- -B build \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib \
- -DSHADERC_SKIP_TESTS=ON \
- -Dglslang_SOURCE_DIR=/usr/include/glslang \
- -GNinja
- ninja -C build
-
- cd glslc
- asciidoctor -b manpage README.asciidoc -o glslc.1
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- DESTDIR="${pkgdir}" ninja -C build install
- install -Dm 644 glslc/glslc.1 -t "${pkgdir}/usr/share/man/man1"
-}
-
-# vim: ts=2 sw=2 et:
Copied: shaderc/repos/extra-x86_64/PKGBUILD (from rev 433123, shaderc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-26 10:12:33 UTC (rev 433124)
@@ -0,0 +1,53 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Daniel M. Capella <polycitizen at gmail.com>
+# Contributor: Bin Jin <bjin at ctrl-d.org>
+
+pkgname=shaderc
+pkgver=2021.3
+pkgrel=1
+pkgdesc='Collection of tools, libraries and tests for shader compilation'
+url='https://github.com/google/shaderc'
+arch=('x86_64')
+license=('Apache')
+depends=('glibc' 'gcc-libs' 'glslang' 'spirv-tools')
+makedepends=('asciidoctor' 'cmake' 'ninja' 'python' 'spirv-headers')
+provides=('libshaderc_shared.so')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/google/shaderc/archive/v${pkgver}.tar.gz)
+sha512sums=('759eca72564bea59c06d31f70a85571a391360d5d428db85a30f934d080bb25e254ecb5650f71a96742cf417f09d819f36d301e92294a5d0d294581ca554248a')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ # de-vendor libs and disable git versioning
+ sed '/examples/d;/third_party/d' -i CMakeLists.txt
+ sed '/build-version/d' -i glslc/CMakeLists.txt
+ cat <<- EOF > glslc/src/build-version.inc
+"${pkgver}\\n"
+"$(pacman -Q spirv-tools|cut -d \ -f 2|sed 's/-.*//')\\n"
+"$(pacman -Q glslang|cut -d \ -f 2|sed 's/-.*//')\\n"
+EOF
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cmake \
+ -B build \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DSHADERC_SKIP_TESTS=ON \
+ -Dglslang_SOURCE_DIR=/usr/include/glslang \
+ -GNinja
+ ninja -C build
+
+ cd glslc
+ asciidoctor -b manpage README.asciidoc -o glslc.1
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ DESTDIR="${pkgdir}" ninja -C build install
+ install -Dm 644 glslc/glslc.1 -t "${pkgdir}/usr/share/man/man1"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list