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

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Jul 19 17:48:30 UTC 2019


    Date: Friday, July 19, 2019 @ 17:48:30
  Author: svenstaro
Revision: 358161

archrelease: copy trunk to testing-x86_64

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

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

Copied: glslang/repos/testing-x86_64/PKGBUILD (from rev 358160, glslang/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-07-19 17:48:30 UTC (rev 358161)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=glslang
+pkgver=7.11.3214
+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' 'spirv-tools')
+makedepends=('cmake')
+options=('staticlibs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz)
+sha256sums=('b30b4668734328d256e30c94037e60d3775b1055743c04d8fd709f2960f302a9')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  mkdir -p build-{shared,static}
+  (cd build-shared
+    cmake .. \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DCMAKE_BUILD_TYPE=Release \
+      -DBUILD_SHARED_LIBS=ON
+    make
+  )
+  (cd build-static
+    cmake .. \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DCMAKE_BUILD_TYPE=Release \
+      -DBUILD_SHARED_LIBS=OFF
+    make
+  )
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make -C build-shared DESTDIR="${pkgdir}" install
+  make -C build-static DESTDIR="${pkgdir}" install
+  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