termux-packages/packages/luv/build.sh
Termux Github Actions 869b6a648c luv: update to 1.42.0-0
This commit has been automatically submitted by Github Actions.
2021-09-19 12:22:01 +00:00

22 lines
763 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/luvit/luv
TERMUX_PKG_DESCRIPTION="Bare libuv bindings for lua"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.42.0-0
TERMUX_PKG_SRCURL=https://github.com/luvit/luv/releases/download/$TERMUX_PKG_VERSION/luv-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=b5228a9d0eaacd9f862b6270c732d5c90773a28ce53b6d9e32a14050e7947f36
TERMUX_PKG_DEPENDS="libluajit, libuv"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DBUILD_MODULE=OFF
-DBUILD_SHARED_LIBS=ON
-DLUA_BUILD_TYPE=System
-DLUAJIT_INCLUDE_DIR=$TERMUX_PREFIX/include/luajit-2.1
-DLUA_PACKAGE_DIR=$TERMUX_PREFIX/lib/lua/5.1
-DWITH_LUA_ENGINE=LuaJit
-DWITH_SHARED_LIBUV=ON
"
termux_step_pre_configure() {
export LDFLAGS+=" -L$TERMUX_PREFIX/lib/lua/5.1"
}