wok annotate cmake/receipt @ rev 25507

plop: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 11 10:36:59 2023 +0000 (21 months ago)
parents 2a0479881723
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
Hans-G?nter@22125 14 DEPENDS="gcc83-lib-base libidn openssl"
Hans-G?nter@24156 15 BUILD_DEPENDS="gcc83 gcc83-lib-base 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 export CXX=g++-83
Hans-G?nter@22125 28
Hans-G?nter@22125 29 ./bootstrap \
Hans-G?nter@22125 30 --prefix=/usr \
Hans-G?nter@22125 31 --docdir=/share/doc/$PACKAGE \
slaxemulator@8674 32 --mandir=/share/man &&
pascal@1511 33 make &&
Hans-G?nter@25387 34 make install DESTDIR=$DESTDIR
pankso@14 35 }
pankso@14 36
pankso@14 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@14 38 genpkg_rules()
pankso@14 39 {
Hans-G?nter@25387 40 cp -a $install/usr $fs
Hans-G?nter@25387 41 rm -rf $fs/usr/share/man
pankso@14 42 }