wok-6.x annotate libluv/receipt @ rev 25537
Up aspell-pl (6.0_20230301-0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 02 15:43:53 2023 +0000 (20 months ago) |
parents | 97ca3cd2cfe4 |
children |
rev | line source |
---|---|
Hans-G?nter@25520 | 1 # SliTaz package receipt. |
Hans-G?nter@25520 | 2 |
Hans-G?nter@25520 | 3 PACKAGE="libluv" |
Hans-G?nter@25520 | 4 VERSION="1.44.2.1" |
Hans-G?nter@25520 | 5 CATEGORY="libs" |
Hans-G?nter@25520 | 6 TAGS="lua" |
Hans-G?nter@25520 | 7 SHORT_DESC="Bare libuv bindings for lua." |
Hans-G?nter@25520 | 8 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@25520 | 9 LICENSE="Apache-2.0" |
Hans-G?nter@25520 | 10 WEB_SITE="https://github.com/luvit/luv" |
Hans-G?nter@25520 | 11 |
Hans-G?nter@25520 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25520 | 13 WGET_URL="$WEB_SITE/releases/download/${VERSION%.*}-${VERSION: -1}/luv-${VERSION%.*}-${VERSION: -1}.tar.gz" |
Hans-G?nter@25520 | 14 |
Hans-G?nter@25520 | 15 DEPENDS="libuv" |
Hans-G?nter@25520 | 16 BUILD_DEPENDS="cmake libuv-dev luajit-dev ninja" |
Hans-G?nter@25520 | 17 |
pascal@25531 | 18 # What is the latest version available today? |
pascal@25531 | 19 current_version() |
pascal@25531 | 20 { |
pascal@25531 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25531 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|-|.|;q' |
pascal@25531 | 23 } |
pascal@25531 | 24 |
Hans-G?nter@25520 | 25 # Rules to configure and make the package. |
Hans-G?nter@25520 | 26 compile_rules() |
Hans-G?nter@25520 | 27 { |
Hans-G?nter@25520 | 28 cmake -B _build \ |
Hans-G?nter@25520 | 29 -G Ninja \ |
Hans-G?nter@25520 | 30 -DCMAKE_BUILD_TYPE=None \ |
Hans-G?nter@25520 | 31 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@25520 | 32 -DWITH_SHARED_LIBUV=ON \ |
Hans-G?nter@25520 | 33 -DLUA_BUILD_TYPE=System \ |
Hans-G?nter@25520 | 34 -DBUILD_MODULE=OFF \ |
Hans-G?nter@25520 | 35 -DBUILD_SHARED_LIBS=ON \ |
pascal@25531 | 36 -DBUILD_STATIC_LIBS=ON |
Hans-G?nter@25520 | 37 cmake --build _build |
Hans-G?nter@25520 | 38 DESTDIR="$DESTDIR" cmake --install _build |
Hans-G?nter@25520 | 39 } |
Hans-G?nter@25520 | 40 |
Hans-G?nter@25520 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@25520 | 42 genpkg_rules() |
Hans-G?nter@25520 | 43 { |
Hans-G?nter@25520 | 44 cook_copy_files *.so* |
Hans-G?nter@25520 | 45 } |
Hans-G?nter@25528 | 46 |