SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "enet"

# SliTaz package receipt.

PACKAGE="enet"
VERSION="1.3.17"
CATEGORY="development"
SHORT_DESC="A relatively thin, simple and robust network communication layer on top of UDP."
MAINTAINER="devl547@gmail.com"
LICENSE="MIT"
WEB_SITE="https://github.com/lsalzman/enet/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"

BUILD_DEPENDS="automake"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

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

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

#    cp -a $install/usr/lib/*a    $fs/usr/lib
#    cp -a $install/usr/include    $fs/usr
    cook_copy_folders    include
    cook_copy_folders    pkgconfig
    cook_copy_files        *.*a
    # what about *.so* ?
    # this looks rather like a package enet-dev !
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)