termux-packages/packages/luv/build.sh

22 lines
754 B
Bash
Raw Normal View History

2019-09-17 22:27:55 +02:00
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"
2021-02-05 22:42:00 +01:00
TERMUX_PKG_VERSION="1.36.0-0"
2019-09-17 22:27:55 +02:00
TERMUX_PKG_SRCURL=https://github.com/luvit/luv/releases/download/$TERMUX_PKG_VERSION/luv-$TERMUX_PKG_VERSION.tar.gz
2021-02-05 22:42:00 +01:00
TERMUX_PKG_SHA256=f2e7eb372574f25c6978c1dc74280d22efdcd7df2dda4a286c7fe7dceda26445
2020-10-01 15:18:14 +02:00
TERMUX_PKG_DEPENDS="liblua53, libuv"
2019-09-17 22:27:55 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DBUILD_MODULE=OFF
-DBUILD_SHARED_LIBS=ON
-DLUA_BUILD_TYPE=System
2020-10-01 15:18:14 +02:00
-DLUA_INCLUDE_DIR=$TERMUX_PREFIX/include/lua5.3
-DLUA_PACKAGE_DIR=$TERMUX_PREFIX/lib/lua/5.3
2019-09-17 22:27:55 +02:00
-DWITH_LUA_ENGINE=Lua
-DWITH_SHARED_LIBUV=ON
"
2020-10-01 15:18:14 +02:00
termux_step_pre_configure() {
export LDFLAGS+=" -L$TERMUX_PREFIX/lib/lua/5.3"
}