wok view tiptop/receipt @ rev 24979

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 07 20:53:56 2022 +0000 (24 months ago)
parents a6b997a82f39
children a66f312c374b
line source
1 # SliTaz package receipt.
3 PACKAGE="tiptop"
4 VERSION="2.3.1"
5 CATEGORY="utilities"
6 SHORT_DESC="A performance monitoring tool for Linux."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/FeCastle/tiptop"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://files.inria.fr/pacap/tiptop/$TARBALL"
14 DEPENDS="libxml2 ncurses"
15 BUILD_DEPENDS="bison flex libxml2-dev m4 ncurses-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://raw.githubusercontent.com/FeCastle/tiptop/master/configure.ac 2>/dev/null | \
21 sed '/AC_INIT/!d;s|.*.tiptop., .||;s|].*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure --prefix=/usr &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 mkdir -p $fs/etc/skel
38 cp -a $install/usr/bin $fs/usr
39 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc
40 }
42 post_install()
43 {
44 for i in $(ls "$1/home" 2> /dev/null)
45 do
46 [ -f "$1/home/$i/.tiptoprc" ] && continue
47 cp "$1/etc/skel/.tiptoprc" "$1/home/$i"
48 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc"
49 done
50 }
52 post_remove()
53 {
54 rm -f "$1"/home/*/.tiptoprc
55 }