wok-current annotate cmake/receipt @ rev 25698

Fix ntfs-3g receipt
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 19:01:01 2024 +0000 (2 months ago)
parents fe199d9ab5d0
children
rev   line source
pankso@14 1 # SliTaz package receipt.
pankso@14 2
pankso@14 3 PACKAGE="cmake"
Hans-G?nter@25387 4 VERSION="3.23.2"
pankso@200 5 CATEGORY="development"
pankso@14 6 SHORT_DESC="Cross-platform Make."
pankso@14 7 MAINTAINER="pankso@slitaz.org"
pascal@15579 8 LICENSE="BSD"
Hans-G?nter@22125 9 WEB_SITE="https://www.cmake.org/"
Hans-G?nter@22125 10
pankso@14 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22125 12 WGET_URL="https://www.cmake.org/files/v${VERSION%.*}/$TARBALL"
pankso@14 13
shann@25591 14 DEPENDS="libidn openssl"
shann@25591 15 BUILD_DEPENDS="ncurses-dev openssl-dev"
pascal@15579 16
pascal@24436 17 # What is the latest version available today?
pascal@24436 18 current_version()
pascal@24436 19 {
pascal@24436 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24436 21 sed "/latest/d;/-rc/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-av.*\".*|\\1|;s|-|.|g" | sort -Vr | sed q
pascal@24436 22 }
pascal@24436 23
pankso@14 24 # Rules to configure and make the package.
pankso@14 25 compile_rules()
pankso@14 26 {
Hans-G?nter@22125 27 ./bootstrap \
Hans-G?nter@22125 28 --prefix=/usr \
Hans-G?nter@22125 29 --docdir=/share/doc/$PACKAGE \
slaxemulator@8674 30 --mandir=/share/man &&
pascal@1511 31 make &&
Hans-G?nter@25387 32 make install DESTDIR=$DESTDIR
pankso@14 33 }
pankso@14 34
pankso@14 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@14 36 genpkg_rules()
pankso@14 37 {
Hans-G?nter@25387 38 cp -a $install/usr $fs
Hans-G?nter@25387 39 rm -rf $fs/usr/share/man
pankso@14 40 }