#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>
#
# sharutils is a compile time only dependency

pkgname=fakeroot
pkgver=1.27
pkgrel=2slint
source=("http://ftp.de.debian.org/debian/pool/main/f/fakeroot/fakeroot_$pkgver.orig.tar.gz")
docs=("readme*" "install" "copying" "changelog" "authors" "news" "todo" "debug")
url=http://packages.debian.org/sid/fakeroot

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"fakeroot (provides a faked root environment suitable for many tasks)"
"Fakeroot makes it possible to run commands in an environment faking"
"root privileges. This is done by setting LD_PRELOAD to libfakeroot.so,"
"which provides wrappers around getuid, chown, chmod, mknod, stat, and"
"so on, thereby creating a fake root environment."
)


build() {
	cd $startdir/src/$pkgname-$pkgver

	./bootstrap

	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static --build=$arch-slackware-linux
	make || return 1
	
	cd doc
	po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg
	cd ..

	make install DESTDIR=$startdir/pkg
} 
