# SliTaz package receipt. PACKAGE="mhash" VERSION="0.9.9.9" CATEGORY="development" SHORT_DESC="uniform interface to a large number of hash algorithms." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://mhash.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/mhash/files/mhash/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/mhash/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src ./configure --prefix=/usr --infodir=/usr/share/info \ --mandir=/usr/share/man $CONFIGURE_ARGS make make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/libmhash.so* $fs/usr/lib }