2022-11-27 18:59:21 +01:00
|
|
|
# Description: Bare libuv bindings for lua
|
|
|
|
# URL: https://github.com/luvit/luv
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: libuv luajit
|
|
|
|
|
|
|
|
name=libluv
|
2024-02-27 07:23:37 +01:00
|
|
|
version=1.48.0-1
|
2022-11-27 18:59:21 +01:00
|
|
|
release=1
|
2024-02-27 07:23:37 +01:00
|
|
|
source=(https://github.com/luvit/luv/releases/download/$version/luv-$version.tar.gz
|
2022-11-27 18:59:21 +01:00
|
|
|
cmake-use-pkgconfig.patch)
|
|
|
|
|
|
|
|
build() {
|
2024-02-27 07:23:37 +01:00
|
|
|
patch -Np1 -d luv-$version -i $SRC/cmake-use-pkgconfig.patch
|
2022-11-27 18:59:21 +01:00
|
|
|
|
2024-02-27 07:23:37 +01:00
|
|
|
cmake -S luv-$version -B build-shared -G Ninja \
|
2022-11-27 18:59:21 +01:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D LUA_BUILD_TYPE=System \
|
|
|
|
-D WITH_SHARED_LIBUV=ON \
|
|
|
|
-D BUILD_SHARED_LIBS=ON \
|
|
|
|
-D BUILD_STATIC_LIBS=OFF \
|
|
|
|
-D WITH_LUA_ENGINE=LuaJit \
|
|
|
|
-D BUILD_MODULE=OFF \
|
|
|
|
-Wno-dev
|
|
|
|
|
|
|
|
cmake --build build-shared
|
|
|
|
DESTDIR=$PKG cmake --install build-shared
|
|
|
|
}
|