Skip to content

Commit

Permalink
add(main): new package glslang
Browse files Browse the repository at this point in the history
  • Loading branch information
termux-pacman-bot committed Mar 10, 2023
1 parent ffa0a7c commit 1f390b7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions packages/glslang/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
TERMUX_PKG_HOMEPAGE=https://github.com/KhronosGroup/glslang
TERMUX_PKG_DESCRIPTION="OpenGL and OpenGL ES shader front end and validator"
TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=11.13.0
TERMUX_PKG_SRCURL=https://github.com/KhronosGroup/glslang/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=592c98aeb03b3e81597ddaf83633c4e63068d14b18a766fd11033bad73127162
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-GNinja
-DCMAKE_INSTALL_PREFIX=$TERMUX_PREFIX
-DCMAKE_BUILD_TYPE=None
-DBUILD_SHARED_LIBS=ON
-Bbuild-shared
"

termux_step_pre_configure() {
termux_setup_ninja
termux_setup_cmake
}

termux_step_make() {
ninja -Cbuild-shared
}

termux_step_make_install() {
ninja -C build-shared install
}

0 comments on commit 1f390b7

Please sign in to comment.