wok-current view cmake/receipt @ rev 25729

Merge wok for both arch and few updates (again)
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:52:36 2024 +0000 (2 months ago)
parents 4f8f52451ff7
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cmake"
4 VERSION="3.23.2"
5 CATEGORY="development"
6 SHORT_DESC="Cross-platform Make."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.cmake.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.cmake.org/files/v${VERSION%.*}/$TARBALL"
14 DEPENDS="libidn openssl"
15 BUILD_DEPENDS="ncurses-dev openssl-dev"
17 HOST_ARCH="i486 x86_64"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed "/latest/d;/-rc/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-av.*\".*|\\1|;s|-|.|g" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./bootstrap \
30 --prefix=/usr \
31 --docdir=/share/doc/$PACKAGE \
32 --mandir=/share/man &&
33 make &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 rm -rf $fs/usr/share/man
42 }