# SliTaz package receipt.

PACKAGE="php-auth-sasl"
VERSION="1.0.4"
CATEGORY="development"
SHORT_DESC="Abstraction of various SASL mechanism responses for php."
MAINTAINER="pascal.bellard@slitaz.org"
WEB_SITE="http://pear.php.net/"
SOURCE="Auth_SASL"
TARBALL="$SOURCE-$VERSION.tgz"
WGET_URL="http://download.pear.php.net/package/$TARBALL"
DEPENDS="php-pear"
BUILD_DEPENDS="php-pear php-cli"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	mkdir -p $DESTDIR/usr/share/php
	tar czf $TARBALL $SOURCE-$VERSION package.xml
	pear install --offline --installroot=$DESTDIR $TARBALL
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
	rm -rf $fs/usr/share/php/.channels $fs/usr/share/php/.registry/.c*
	rm -rf $fs/usr/share/php/.f* $fs/usr/share/php/.l*
	rm -rf $fs/usr/share/php/.dep*
}