# SliTaz package receipt.

PACKAGE="fakeroot"
VERSION="1.15.1"
CATEGORY="development"
SHORT_DESC="Gives a fake root environment, useful for building packages as a non-privileged user"
MAINTAINER="slaxemulator@gmail.com"
TARBALL="${PACKAGE}_${VERSION}.orig.tar.bz2"
WEB_SITE="http://packages.debian.org/fakeroot"
WGET_URL="http://ftp.debian.org/debian/pool/main/f/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--disable-static \
		$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/bin $fs/usr
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}