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="http://enet.bespin.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/download/$TARBALL"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/projectnumber/!d;s|.*>v||;s|<.*||'
}

# Rules to configure and make the package.
compile_rules()
{
    ./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 !
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)