23 lines
787 B
Bash
23 lines
787 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.41.0-0"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/luvit/luv/releases/download/$TERMUX_PKG_VERSION/luv-$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=4018f293d71c2d75757b64fcdacf982729c9dc8b0bf8eda4015a8818a5a29321
|
|
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"
|
|
}
|