SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gtkdatabox"

# SliTaz package receipt.

PACKAGE="gtkdatabox"
VERSION="0.9.1.1"
CATEGORY="development"
SHORT_DESC="Widget for live display of large amounts of fluctuating data."
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL2.1"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://sourceforge.net/projects/gtkdatabox/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="gtk+"
BUILD_DEPENDS="pkg-config libffi gtk+-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/gtkdatabox/files/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;/tar/!d;/gtkdatabox/!d;s|.*/gtkdatabox-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src

    # Fix from gentoo
    # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/gtkdatabox/gtkdatabox-0.9.1.1.ebuild?view=markup
    # Remove -D.*DISABLE_DEPRECATED cflags
    find . -iname 'Makefile.am' -exec \
    sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
    # Do Makefile.in after Makefile.am to avoid automake maintainer-mode
    find . -iname 'Makefile.in' -exec \
    sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \

    ./configure $CONFIGURE_ARGS && make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)