# SliTaz package receipt. PACKAGE="xrestop" VERSION="0.4" CATEGORY="utilities" SHORT_DESC="X11 server resource usage monitor." MAINTAINER="paul@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://www.freedesktop.org/wiki/Software/xrestop/" WGET_URL="http://downloads.yoctoproject.org/releases/xrestop/$TARBALL" DEPENDS="ncurses xorg-libXres libtinfo" BUILD_DEPENDS="ncurses-dev xorg-libXres-dev" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" ./configure --prefix=/usr make make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }