[arch-commits] Commit in glslang/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Apr 29 12:44:43 UTC 2020
Date: Wednesday, April 29, 2020 @ 12:44:42
Author: svenstaro
Revision: 381835
archrelease: copy trunk to testing-x86_64
Added:
glslang/repos/testing-x86_64/
glslang/repos/testing-x86_64/PKGBUILD
(from rev 381834, glslang/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: glslang/repos/testing-x86_64/PKGBUILD (from rev 381834, glslang/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-04-29 12:44:42 UTC (rev 381835)
@@ -0,0 +1,51 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+
+# Careful when upgrading this package! It usually breaks ABI without bumping soname.
+pkgname=glslang
+pkgver=8.13.3743
+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' 'spirv-tools' 'python')
+makedepends=('cmake' 'ninja')
+options=('staticlibs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz)
+sha256sums=('639ebec56f1a7402f2fa094469a5ddea1eceecfaf2e9efe361376a0f73a7ee2f')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ mkdir -p build-{shared,static}
+ (cd build-shared
+ cmake .. \
+ -GNinja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=ON
+ ninja
+ )
+ (cd build-static
+ cmake .. \
+ -GNinja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=OFF
+ ninja
+ )
+}
+
+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:
More information about the arch-commits
mailing list