2021-11-17 09:36:43 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://ziglang.org
|
|
|
|
TERMUX_PKG_DESCRIPTION="General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software."
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="@leapofazzam123"
|
2022-02-26 09:37:10 +01:00
|
|
|
TERMUX_PKG_VERSION=0.9.1
|
2021-11-17 09:36:43 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://ziglang.org/download/$TERMUX_PKG_VERSION/zig-$TERMUX_PKG_VERSION.tar.xz
|
2022-02-26 09:37:10 +01:00
|
|
|
TERMUX_PKG_SHA256=38cf4e84481f5facc766ba72783e7462e08d6d29a5d47e3b75c8ee3142485210
|
2021-11-17 09:36:43 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-spawn, libc++, libxml2, ncurses, zlib"
|
|
|
|
TERMUX_PKG_BUILD_DEPENDS="llvm, libllvm-static"
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
-DZIG_PREFER_CLANG_CPP_DYLIB=OFF
|
|
|
|
-DLLVM_LIBDIRS=$TERMUX_PREFIX/lib
|
|
|
|
"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
termux_setup_zig
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="
|
2022-01-30 05:34:20 +01:00
|
|
|
-DZIG_EXECUTABLE=$(command -v zig)
|
2021-11-17 09:36:43 +01:00
|
|
|
-DZIG_TARGET_TRIPLE=$ZIG_TARGET_NAME
|
|
|
|
"
|
|
|
|
LDFLAGS+=" -landroid-spawn -lncursesw -lxml2 -lz"
|
|
|
|
}
|