SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dtach"

# SliTaz package receipt.

PACKAGE="dtach"
VERSION="0.9"
CATEGORY="system-tools"
SHORT_DESC="Emulates the detach feature of screen."
MAINTAINER="christophe.paris@free.fr"
LICENSE="GPL2"
WEB_SITE="https://dtach.sourceforge.net/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/dtach/$TARBALL"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make || return 1
    # no install rules, let's do it by hand
    mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/man/man1
    cp dtach $DESTDIR/usr/bin
    cp dtach.1 $DESTDIR/usr/share/man/man1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $install/usr/bin $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)