wok annotate matio/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | e2073ef01171 |
children | 870a10e2d8f5 |
rev | line source |
---|---|
pascal@17973 | 1 # SliTaz package receipt. |
pascal@17973 | 2 |
pascal@17973 | 3 PACKAGE="matio" |
pascal@23975 | 4 VERSION="1.5.18" |
pascal@17973 | 5 CATEGORY="development" |
Hans-G?nter@21422 | 6 SHORT_DESC="Library for reading and writing Matlab MAT files." |
pascal@17973 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17973 | 8 LICENSE="BSD" |
Hans-G?nter@21422 | 9 WEB_SITE="https://matio.sourceforge.io/" |
Hans-G?nter@21422 | 10 |
pascal@17973 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21422 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@17973 | 13 |
pascal@17973 | 14 DEPENDS="zlib" |
pascal@17973 | 15 |
pascal@24402 | 16 # What is the latest version available today? |
pascal@24402 | 17 current_version() |
pascal@24402 | 18 { |
pascal@24402 | 19 wget -O - https://sourceforge.net/projects/matio/files/matio/ 2>/dev/null | \ |
pascal@24402 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24402 | 21 sed '/scope="row/!d;s|.*/matio/||;s|/.*||;q' |
pascal@24402 | 22 } |
pascal@24402 | 23 |
pascal@17973 | 24 # Rules to configure and make the package. |
pascal@17973 | 25 compile_rules() |
pascal@17973 | 26 { |
Hans-G?nter@21422 | 27 ./configure \ |
Hans-G?nter@21422 | 28 --prefix=/usr \ |
Hans-G?nter@21422 | 29 --infodir=/usr/share/info \ |
Hans-G?nter@21422 | 30 --mandir=/usr/share/man \ |
pascal@17973 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@21422 | 32 make -j 1 && |
pascal@17973 | 33 make DESTDIR=$DESTDIR install |
pascal@17973 | 34 } |
pascal@17973 | 35 |
pascal@17973 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17973 | 37 genpkg_rules() |
pascal@17973 | 38 { |
pascal@17973 | 39 mkdir -p $fs/usr/lib |
Hans-G?nter@21422 | 40 |
Hans-G?nter@21422 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21422 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@17973 | 43 } |