wok view tiptop/receipt @ rev 24033

updated dialog-dev (1.3_20190211 -> 1.3_20210324)
author Hans-G?nter Theisgen
date Wed Apr 07 15:56:56 2021 +0100 (2021-04-07)
parents ed8073aa8cf0
children 870e1ce31226
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="http://tiptop.gforge.inria.fr/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}releases/$TARBALL"
14 DEPENDS="libxml2 ncurses"
15 BUILD_DEPENDS="bison flex libxml2-dev m4 ncurses-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --prefix=/usr &&
21 make &&
22 make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr
29 mkdir -p $fs/etc/skel
31 cp -a $install/usr/bin $fs/usr
32 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc
33 }
35 post_install()
36 {
37 for i in $(ls "$1/home" 2> /dev/null)
38 do
39 [ -f "$1/home/$i/.tiptoprc" ] && continue
40 cp "$1/etc/skel/.tiptoprc" "$1/home/$i"
41 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc"
42 done
43 }
45 post_remove()
46 {
47 rm -f "$1"/home/*/.tiptoprc
48 }