wok-6.x annotate hdf5/receipt @ rev 25258
qt5: modified WGET_URL
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 15 07:00:31 2022 +0100 (2022-07-15) |
parents | 89c8d8b6cf48 |
children |
rev | line source |
---|---|
pascal@13511 | 1 # SliTaz package receipt. |
pascal@13511 | 2 |
pascal@13511 | 3 PACKAGE="hdf5" |
Hans-G?nter@24638 | 4 VERSION="1.12.1" |
pascal@13511 | 5 CATEGORY="misc" |
Hans-G?nter@21032 | 6 SHORT_DESC="A data model, library, and file format for storing and managing data." |
pascal@13511 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15600 | 8 LICENSE="BSD" |
pascal@20669 | 9 WEB_SITE="https://www.hdfgroup.org/HDF5" |
Hans-G?nter@21032 | 10 |
pascal@13511 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@21032 | 12 WGET_URL="https://support.hdfgroup.org/ftp/HDF5/releases/$PACKAGE-${VERSION%.*}/$PACKAGE-$VERSION/src/$TARBALL" |
pascal@13511 | 13 |
pascal@13511 | 14 DEPENDS="zlib" |
pascal@13511 | 15 BUILD_DEPENDS="cmake szip zlib-dev" |
pascal@13511 | 16 |
pascal@24476 | 17 # What is the latest version available today? |
pascal@24476 | 18 current_version() |
pascal@24476 | 19 { |
pascal@24476 | 20 wget -O - https://support.hdfgroup.org/ftp/HDF5/releases/$( \ |
pascal@24476 | 21 wget -O - https://support.hdfgroup.org/ftp/HDF5/releases/ 2>/dev/null | \ |
pascal@24476 | 22 sed '/\/">hdf5-[0-9]/!d;s|.*hdf5-|hdf5-|;s|/.*|/|' | sort -Vr | sed q) 2>/dev/null | \ |
pascal@24476 | 23 sed '/\/">hdf5-[0-9]/!d;s|.*hdf5-||;s|/.*||' | sort -Vr | sed q |
pascal@24476 | 24 } |
pascal@24476 | 25 |
pascal@13511 | 26 # Rules to configure and make the package. |
pascal@13511 | 27 compile_rules() |
pascal@13511 | 28 { |
Hans-G?nter@22927 | 29 sed -i 's/Using_CMake.txt/USING_CMake.txt/' \ |
Hans-G?nter@22927 | 30 src/CMakeLists.txt |
Hans-G?nter@21032 | 31 |
pascal@13511 | 32 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@24638 | 33 make all && |
Hans-G?nter@24638 | 34 make install DESTDIR=$DESTDIR |
pascal@13511 | 35 } |
pascal@13511 | 36 |
pascal@13511 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13511 | 38 genpkg_rules() |
pascal@13511 | 39 { |
Hans-G?nter@24638 | 40 cook_copy_folders bin |
Hans-G?nter@24638 | 41 cook_copy_folders lib |
Hans-G?nter@22927 | 42 rm -f $fs/usr/lib/*a |
pascal@13511 | 43 } |