SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libnet"

# SliTaz package receipt.

PACKAGE="libnet"
VERSION="1.2"
CATEGORY="network"
SHORT_DESC="A library which provides API for commonly used low-level net functions."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="BSD"
WEB_SITE="https://github.com/libnet/libnet"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files    *.so*
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)