SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "setserial"

# SliTaz package receipt.

PACKAGE="setserial"
VERSION="2.17"
CATEGORY="system-tools"
SHORT_DESC="Serial port configutation tool."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://sourceforge.net/projects/setserial/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
HOST_ARCH="i486 arm"

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

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $DESTDIR/usr/bin
    
    # http://bugs.gentoo.org/309883
    #  & remove warnings 
    patch -p1 < $stuff/setserial-2.17.u || return 1
    
    ./configure \
        --prefix=/usr \
        $CONFIGURE_ARGS &&
    make $PACKAGE &&
    install -m 755 $PACKAGE $DESTDIR/usr/bin
}

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

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)