wok-current annotate tiptop/receipt @ rev 17448

Add Qcad 2D CAD application
author Christophe Lincoln <pankso@slitaz.org>
date Sun Dec 14 10:13:18 2014 +0100 (2014-12-14)
parents cc6bbcf323fa
children 9e01bc6321ea
rev   line source
paul@17078 1 # SliTaz package receipt.
paul@17078 2
paul@17078 3 PACKAGE="tiptop"
paul@17078 4 VERSION="2.2"
paul@17078 5 CATEGORY="utilities"
paul@17078 6 SHORT_DESC="Tiptop is a performance monitoring tool for Linux."
paul@17078 7 MAINTAINER="paul@slitaz.org"
pascal@17216 8 LICENSE="GPL2"
paul@17078 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@17078 10 WEB_SITE="http://tiptop.gforge.inria.fr/"
paul@17078 11 WGET_URL="http://tiptop.gforge.inria.fr/releases/$TARBALL"
paul@17078 12
paul@17078 13 DEPENDS="ncurses libxml2"
paul@17078 14 BUILD_DEPENDS="ncurses-dev libxml2-dev bison flex m4"
paul@17078 15
paul@17078 16 # Rules to configure and make the package.
paul@17078 17 compile_rules()
paul@17078 18 {
paul@17078 19 ./configure --prefix=/usr
paul@17078 20 make
paul@17078 21 make install
paul@17078 22 }
paul@17078 23
paul@17078 24 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@17078 25 genpkg_rules()
paul@17078 26 {
pascal@17080 27 mkdir -p $fs/usr $fs/etc/skel
paul@17078 28 cp -a $install/usr/bin $fs/usr
pascal@17080 29 cp -a $src/tiptoprc $fs/etc/skel/.tiptoprc
paul@17078 30 }
paul@17078 31
pascal@17080 32 post_install()
pascal@17080 33 {
pascal@17085 34 for i in $(ls $1/home 2> /dev/null); do
pascal@17085 35 [ -f /home/$i/.tiptoprc ] && continue
pascal@17080 36 cp $1/etc/skel/.tiptoprc $1/home/$i
pascal@17249 37 chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.tiptoprc
pascal@17080 38 done
pascal@17080 39 }
pascal@17080 40
pascal@17080 41 post_remove()
pascal@17080 42 {
pascal@17080 43 rm -f $1/home/*/.tiptoprc
pascal@17080 44 }