wok view libluv/receipt @ rev 25582
Up tp_smapi64 (0.43)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 27 12:55:43 2023 +0000 (17 months ago) |
parents | 97ca3cd2cfe4 |
children | 5db546345599 |
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%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|-|.|;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 }