# SliTaz package receipt.

PACKAGE="libmcrypt"
VERSION="2.5.8"
CATEGORY="security"
SHORT_DESC="Encryption Library"
MAINTAINER="erjo@slitaz.org"
DEPENDS=""
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://mcrypt.sourceforge.net/"
WGET_URL="http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz"

# 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=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $_pkg/usr/lib/libmcrypt  $fs/usr/lib
	cp -a $_pkg/usr/lib/*.so*  $fs/usr/lib
}