summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Demers2019-08-15 11:27:53 -0400
committerAlexandre Demers2019-08-15 11:27:53 -0400
commit55015a96c172480bae586a4af56d91d927420089 (patch)
treeeb84f62b2ee779ebeef12db78c53922fbb1f717c
downloadaur-55015a96c172480bae586a4af56d91d927420089.tar.gz
Initial commit
Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD75
2 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..76dab42ba7a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = lib32-glslang
+ pkgdesc = OpenGL and OpenGL ES shader front end and validator (32bit)
+ pkgver = 7.11.3214
+ pkgrel = 1
+ url = https://github.com/KhronosGroup/glslang
+ arch = x86_64
+ license = BSD
+ makedepends = cmake
+ makedepends = ninja
+ depends = glslang
+ depends = lib32-gcc-libs
+ depends = lib32-spirv-tools
+ options = staticlibs
+ source = lib32-glslang-7.11.3214.tar.gz::https://github.com/KhronosGroup/glslang/archive/7.11.3214.tar.gz
+ sha256sums = b30b4668734328d256e30c94037e60d3775b1055743c04d8fd709f2960f302a9
+
+pkgname = lib32-glslang
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4ec96765409
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,75 @@
+# Maintainer: Alexandre Demers <alexandre.f.demers@gmail.com>
+
+_setPrefix="/usr"
+_setLibdir="lib32"
+_setFullLibdir="${_setPrefix}/${_setLibdir}"
+_pkgbasename=glslang
+
+pkgname=lib32-$_pkgbasename
+pkgver=7.11.3214
+pkgrel=1
+pkgdesc='OpenGL and OpenGL ES shader front end and validator (32bit)'
+arch=('x86_64')
+url='https://github.com/KhronosGroup/glslang'
+license=('BSD')
+depends=(
+ "$_pkgbasename"
+ 'lib32-gcc-libs'
+ 'lib32-spirv-tools'
+ )
+makedepends=(
+ 'cmake'
+ 'ninja'
+ )
+options=('staticlibs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/glslang/archive/${pkgver}.tar.gz)
+sha256sums=('b30b4668734328d256e30c94037e60d3775b1055743c04d8fd709f2960f302a9')
+
+build() {
+ export CCFLAGS="-m32"
+ export CXXFLAGS="-m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd ${_pkgbasename}-${pkgver}
+ mkdir -p build-{shared,static}
+ (cd build-shared
+ cmake .. \
+ -G Ninja \
+ -DCMAKE_LIBRARY_PATH="/usr/lib32" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR="lib32" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=ON
+ ninja
+ )
+ (cd build-static
+ cmake .. \
+ -G Ninja \
+ -DCMAKE_LIBRARY_PATH="/usr/lib32" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR="lib32" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=OFF
+ ninja
+ )
+}
+
+package() {
+ cd ${_pkgbasename}-${pkgver}
+ DESTDIR="${pkgdir}" ninja -C build-shared install
+ DESTDIR="${pkgdir}" ninja -C build-static install
+
+ cd "${pkgdir}/usr/lib32/"
+ for lib in *.so; do
+ ln -sf "${lib}" "${lib}.0"
+ done
+ cd ..
+
+ for i in "${pkgdir}/usr/bin/"*; do
+ mv "$i" "$i"32
+ done
+
+ rm -rf "${pkgdir}"/usr/{include,share}
+}
+
+# vim: ts=2 sw=2 et: \ No newline at end of file