# SliTaz package receipt.

PACKAGE="libmcs"
VERSION="0.7.2"
CATEGORY="system-tools"
SHORT_DESC="Library for configuration storage"
MAINTAINER="mimas@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tgz"
WEB_SITE="http://www.atheme.org/libmcs/"
WGET_URL="http://distfiles.atheme.org/$TARBALL"
DEPENDS="libmowgli"
BUILD_DEPENDS="libmowgli-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i "s/touch -t 0001010000 /touch /g" configure
	./configure $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 $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/lib/libmcs.so* $fs/usr/lib/
	cp -a $_pkg/usr/lib/mcs $fs/usr/lib/
}