wok-current annotate xrestop/receipt @ rev 25096
created recipe for wordgrinder
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 15:13:12 2022 +0100 (2022-06-18) |
parents | 46fc8daa3b41 |
children | 73f36875e5a7 |
rev | line source |
---|---|
paul@17490 | 1 # SliTaz package receipt. |
paul@17490 | 2 |
paul@17490 | 3 PACKAGE="xrestop" |
paul@17490 | 4 VERSION="0.4" |
paul@17490 | 5 CATEGORY="utilities" |
paul@17490 | 6 SHORT_DESC="X11 server resource usage monitor." |
paul@17490 | 7 MAINTAINER="paul@slitaz.org" |
pascal@18334 | 8 LICENSE="GPL2" |
paul@17490 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@17490 | 10 WEB_SITE="http://www.freedesktop.org/wiki/Software/xrestop/" |
paul@17490 | 11 WGET_URL="http://downloads.yoctoproject.org/releases/xrestop/$TARBALL" |
paul@17490 | 12 |
paul@17494 | 13 DEPENDS="ncurses xorg-libXres libtinfo" |
paul@17490 | 14 BUILD_DEPENDS="ncurses-dev xorg-libXres-dev" |
paul@17490 | 15 |
pascal@24465 | 16 # What is the latest version available today? |
pascal@24465 | 17 current_version() |
pascal@24465 | 18 { |
pascal@24465 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24465 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24465 | 21 } |
pascal@24465 | 22 |
paul@17490 | 23 # Rules to configure and make the package. |
paul@17490 | 24 compile_rules() |
paul@17490 | 25 { |
pascal@17670 | 26 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
paul@17490 | 27 ./configure --prefix=/usr |
paul@17490 | 28 make |
paul@17490 | 29 make install |
paul@17490 | 30 } |
paul@17490 | 31 |
paul@17490 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@17490 | 33 genpkg_rules() |
paul@17490 | 34 { |
paul@17490 | 35 mkdir -p $fs/usr |
paul@17490 | 36 cp -a $install/usr/bin $fs/usr |
paul@17490 | 37 } |
paul@17490 | 38 |