# SliTaz package receipt. PACKAGE="matio" VERSION="1.5.22" CATEGORY="development" SHORT_DESC="Library for reading and writing Matlab MAT files." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="https://github.com/tbeu/matio" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="zlib" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/matio/files/matio/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/matio/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin cook_copy_files *.so* }