# SliTaz package receipt. PACKAGE="libmcrypt" VERSION="2.5.8" CATEGORY="security" SHORT_DESC="Encryption Library" MAINTAINER="erjo@slitaz.org" LICENSE="LGPL2.1" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://mcrypt.sourceforge.net/" WGET_URL="$SF_MIRROR/project/mcrypt/Libmcrypt/$VERSION/$TARBALL" DEPENDS="" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/mcrypt/files/Libmcrypt/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/Libmcrypt/||;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 DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/libmcrypt $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }