wok annotate libstatgrab/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 99a2dc705199
children 5db546345599
rev   line source
pankso@13503 1 # SliTaz package receipt.
pankso@13503 2
pankso@13503 3 PACKAGE="libstatgrab"
Hans-G?nter@24835 4 VERSION="0.92.1"
pankso@13503 5 CATEGORY="system-tools"
Hans-G?nter@21315 6 SHORT_DESC="Provides statistics about the system on which it is run."
pankso@13503 7 MAINTAINER="pankso@slitaz.org"
pascal@14718 8 LICENSE="GPL2"
Hans-G?nter@21315 9 WEB_SITE="https://www.i-scream.org/libstatgrab/"
Hans-G?nter@21315 10
pankso@13503 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24978 12 WGET_URL="https://ftp.i-scream.org/pub/i-scream/libstatgrab/$TARBALL"
pankso@13503 13
pankso@13503 14 DEPENDS="ncursesw"
Hans-G?nter@21315 15 BUILD_DEPENDS="file ncursesw-dev"
pankso@13503 16
pascal@24497 17 # What is the latest version available today?
pascal@24497 18 current_version()
pascal@24497 19 {
pascal@24497 20 wget -O - https://github.com/libstatgrab/libstatgrab/releases 2>/dev/null | \
pascal@24497 21 sed '/archive.*tar/!d;s|.*/[A-Z_]*\(.*\).tar.*|\1|;s|_|.|g;q'
pascal@24497 22 }
pascal@24497 23
pankso@13503 24 # Rules to configure and make the package.
pankso@13503 25 compile_rules()
pankso@13503 26 {
pascal@17715 27 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@23106 28
pankso@13503 29 ./configure &&
Hans-G?nter@23106 30 make &&
Hans-G?nter@23106 31 make install
pankso@13503 32 }
pankso@13503 33
pankso@13503 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@13503 35 genpkg_rules()
pankso@13503 36 {
Hans-G?nter@24835 37 cook_copy_folders bin
Hans-G?nter@24835 38 cook_copy_files *.so*
pankso@13503 39 }