wok-current view libgtop/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (2 months ago)
parents 0f35eecb4c7a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libgtop"
4 VERSION="2.40.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Gnome library for system monitoring."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gnome.org"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
14 SUGGESTED="libgtop-lang"
15 DEPENDS="glib"
16 BUILD_DEPENDS="glib-dev intltool"
18 HOST_ARCH="i486 x86_64"
20 current_version()
21 {
22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 case $SLITAZ_ARCH in
30 i?86)
31 cpu=i486 ;;
32 x86_64)
33 cpu=x86_64 ;;
34 esac
36 sed -i 's|uname -m|echo $cpu|' \
37 src/Makefile* \
38 src/daemon/Makefile*
40 ./configure \
41 --prefix=/usr \
42 $CONFIGURE_ARGS &&
43 sed -i -e 's|chown root |chown root $(DESTDIR)|' \
44 -e 's|chmod 4755 |chmod 4755 $(DESTDIR)|' \
45 src/daemon/Makefile &&
46 make &&
47 make install DESTDIR=$DESTDIR
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 cook_copy_files *.so*
54 }