wok-6.x annotate hdf5/receipt @ rev 24476
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 09:29:30 2022 +0000 (2022-02-18) |
parents | 4e60ad201909 |
children | 8ed7694bbe1f |
rev | line source |
---|---|
pascal@13511 | 1 # SliTaz package receipt. |
pascal@13511 | 2 |
pascal@13511 | 3 PACKAGE="hdf5" |
Hans-G?nter@22927 | 4 VERSION="1.10.6" |
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@21032 | 33 make -j 1 all && |
Hans-G?nter@21032 | 34 make DESTDIR=$DESTDIR install |
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 { |
pascal@13511 | 40 mkdir -p $fs/usr |
Hans-G?nter@21032 | 41 |
Hans-G?nter@21032 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21032 | 43 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22927 | 44 rm -f $fs/usr/lib/*a |
pascal@13511 | 45 } |