wok view libstatgrab/receipt @ rev 24943

BootProg: clear cmdline (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 20 16:57:09 2022 +0000 (2022-04-20)
parents 34e801e0eb52
children 00e3b45c063b
line source
1 # SliTaz package receipt.
3 PACKAGE="libstatgrab"
4 VERSION="0.92.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Provides statistics about the system on which it is run."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.i-scream.org/libstatgrab/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://ftp.uk.i-scream.org/pub/i-scream/libstatgrab/$TARBALL"
14 DEPENDS="ncursesw"
15 BUILD_DEPENDS="file ncursesw-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/libstatgrab/libstatgrab/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Z_]*\(.*\).tar.*|\1|;s|_|.|g;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -ltinfo"
29 ./configure &&
30 make &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_folders bin
38 cook_copy_files *.so*
39 }