wok view libluv/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 595fe6959202 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libluv"
4 VERSION="1.44.2.1"
5 CATEGORY="libs"
6 TAGS="lua"
7 SHORT_DESC="Bare libuv bindings for lua."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="Apache-2.0"
10 WEB_SITE="https://github.com/luvit/luv"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/releases/download/${VERSION%.*}-${VERSION: -1}/luv-${VERSION%.*}-${VERSION: -1}.tar.gz"
15 DEPENDS="libuv"
16 BUILD_DEPENDS="cmake libuv-dev luajit-dev ninja"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/[A-Za-z ]*||;s|".*||;s|-|.|g;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cmake -B _build \
29 -G Ninja \
30 -DCMAKE_BUILD_TYPE=None \
31 -DCMAKE_INSTALL_PREFIX=/usr \
32 -DWITH_SHARED_LIBUV=ON \
33 -DLUA_BUILD_TYPE=System \
34 -DBUILD_MODULE=OFF \
35 -DBUILD_SHARED_LIBS=ON \
36 -DBUILD_STATIC_LIBS=ON
37 cmake --build _build
38 DESTDIR="$DESTDIR" cmake --install _build
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cook_copy_files *.so*
45 }