# HG changeset patch # User Hans-G?nter Theisgen # Date 1677249872 -3600 # Node ID 11e12a2c0eb885273a848557417fd9ce8a3a3bd8 # Parent 2ce61368004bb9407d0cfcbd7b7a9796fdb66130 created recipes for libluv and libluv-dev 1.44.2.1 diff -r 2ce61368004b -r 11e12a2c0eb8 libluv-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libluv-dev/receipt Fri Feb 24 15:44:32 2023 +0100 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="libluv-dev" +VERSION="1.44.2.1" +CATEGORY="development" +TAGS="lua" +SHORT_DESC="Bare libuv bindings for lua - development files." +MAINTAINER="maintainer@slitaz.org" +LICENSE="Apache-2.0" +WEB_SITE="https://github.com/luvit/luv" + +WANTED="libluv" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + get_dev_files +} diff -r 2ce61368004b -r 11e12a2c0eb8 libluv/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libluv/description.txt Fri Feb 24 15:44:32 2023 +0100 @@ -0,0 +1,5 @@ +Libuv bindings for luajit and lua. + +This library makes libuv available to lua scripts. +It was made for the luvit project but should usable +from nearly any lua project. diff -r 2ce61368004b -r 11e12a2c0eb8 libluv/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libluv/receipt Fri Feb 24 15:44:32 2023 +0100 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="libluv" +VERSION="1.44.2.1" +CATEGORY="libs" +TAGS="lua" +SHORT_DESC="Bare libuv bindings for lua." +MAINTAINER="maintainer@slitaz.org" +LICENSE="Apache-2.0" +WEB_SITE="https://github.com/luvit/luv" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="$WEB_SITE/releases/download/${VERSION%.*}-${VERSION: -1}/luv-${VERSION%.*}-${VERSION: -1}.tar.gz" + +DEPENDS="libuv" +BUILD_DEPENDS="cmake libuv-dev luajit-dev ninja" + +# Rules to configure and make the package. +compile_rules() +{ + cmake -B _build \ + -G Ninja \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DWITH_SHARED_LIBUV=ON \ + -DLUA_BUILD_TYPE=System \ + -DBUILD_MODULE=OFF \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_STATIC_LIBS=OFF + cmake --build _build + DESTDIR="$DESTDIR" cmake --install _build +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_files *.so* +}