wok annotate libgtop/receipt @ rev 25296

updated screenfetch (3.5.0 -> 3.9.1)
author Hans-G?nter Theisgen
date Tue Jul 19 17:51:41 2022 +0100 (2022-07-19)
parents 6831608a1b2a
children
rev   line source
pascal@11205 1 # SliTaz package receipt.
pascal@11205 2
pascal@11205 3 PACKAGE="libgtop"
Hans-G?nter@24795 4 VERSION="2.40.0"
pascal@11205 5 CATEGORY="x-window"
Hans-G?nter@24795 6 SHORT_DESC="Gnome library for system monitoring."
pascal@11205 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14714 8 LICENSE="GPL2"
Hans-G?nter@24795 9 WEB_SITE="https://www.gnome.org"
Hans-G?nter@24795 10
pascal@11205 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@24795 12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
pascal@14714 13
Hans-G?nter@24795 14 SUGGESTED="libgtop-lang"
Hans-G?nter@24795 15 DEPENDS="gcc83-lib-base glib"
Hans-G?nter@24795 16 BUILD_DEPENDS="gcc83 glib-dev intltool"
pascal@11205 17
pascal@24111 18 current_version()
pascal@24111 19 {
pascal@24111 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 22 }
pascal@24111 23
pascal@11205 24 # Rules to configure and make the package.
pascal@11205 25 compile_rules()
pascal@11205 26 {
Hans-G?nter@24795 27 sed -i 's|uname -m|echo i486|' \
Hans-G?nter@24795 28 src/Makefile* \
Hans-G?nter@24795 29 src/daemon/Makefile*
Hans-G?nter@24795 30
Hans-G?nter@24795 31 ./configure \
Hans-G?nter@24795 32 CC=gcc-83 \
Hans-G?nter@24795 33 CXX=g++-83 \
Hans-G?nter@24795 34 --prefix=/usr \
pascal@11205 35 $CONFIGURE_ARGS &&
Hans-G?nter@24795 36 sed -i -e 's|chown root |chown root $(DESTDIR)|' \
Hans-G?nter@24795 37 -e 's|chmod 4755 |chmod 4755 $(DESTDIR)|' \
Hans-G?nter@24795 38 src/daemon/Makefile &&
Hans-G?nter@24795 39 make &&
Hans-G?nter@24795 40 make install DESTDIR=$DESTDIR
pascal@11205 41 }
pascal@11205 42
pascal@11205 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11205 44 genpkg_rules()
pascal@11205 45 {
Hans-G?nter@24795 46 cook_copy_files *.so*
pascal@11205 47 }