SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "hdf5"

# SliTaz package receipt.

PACKAGE="hdf5"
VERSION="1.12.1"
CATEGORY="misc"
SHORT_DESC="A data model, library, and file format for storing and managing data."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.hdfgroup.org/HDF5"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://support.hdfgroup.org/ftp/HDF5/releases/$PACKAGE-${VERSION%.*}/$PACKAGE-$VERSION/src/$TARBALL"

DEPENDS="zlib"
BUILD_DEPENDS="cmake szip zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://support.hdfgroup.org/ftp/HDF5/releases/$( \
    wget -O - https://support.hdfgroup.org/ftp/HDF5/releases/ 2>/dev/null | \
    sed '/\/">hdf5-[0-9]/!d;s|.*hdf5-|hdf5-|;s|/.*|/|' | sort -Vr | sed q) 2>/dev/null | \
    sed '/\/">hdf5-[0-9]/!d;s|.*hdf5-||;s|/.*||' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/Using_CMake.txt/USING_CMake.txt/' \
        src/CMakeLists.txt

    ./configure $CONFIGURE_ARGS &&
    make all &&
    make install DESTDIR=$DESTDIR
}

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