SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "h8300-gdb"

# SliTaz package receipt.

PACKAGE="h8300-gdb"
SOURCE="gdb"
VERSION="7.1a"
CATEGORY="development"
SHORT_DESC="The GNU Project Debugger targeting the H8/300."
MAINTAINER="rcx@zoominternet.net"
LICENSE="GPL2"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/gdb/"
WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"

DEPENDS="ncurses expat"
BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev"

# Configuration only needs included if we're in the build/wok environment
if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
    . $WOK/h8300-toolchain/stuff/h8300.conf
fi

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    # Configuration only needs included if we're in the build/wok environment
    if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
        . $WOK/h8300-toolchain/stuff/h8300.conf
    fi
    mkdir -p $SOURCE-$VERSION-build
    cd $SOURCE-$VERSION-build
    $src/configure \
        --disable-werror \
        --target=$H8300_TARGET \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make $MAKEFLAGS &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
}

# Rules to clean the package
clean_wok()
{
    rm -r -f $SOURCE-$VERSION-build
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)