SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "physfs"

# SliTaz package receipt.

PACKAGE="physfs"
VERSION="3.0.2"
CATEGORY="development"
SHORT_DESC="Abstraction layer for filesystem and archive access."
MAINTAINER="devl547@gmail.com"
LICENSE="LGPL"
WEB_SITE="https://icculus.org/physfs/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="${WEB_SITE}downloads/$TARBALL"

BUILD_DEPENDS="cmake"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    export CFLAGS="-Wno-error=unused-but-set-variable"

    cmake $src &&
    cmake    .                \
        -DCMAKE_INSTALL_PREFIX=/usr    \
        -DPHYSFS_BUILD_SHARED=ON    \
        -DPHYSFS_BUILD_TEST=OFF &&
    make    DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)