# Description: Gives a fake root environment.
# URL: http://packages.debian.org/fakeroot
# Packager: alienus at nutyx dot org
# Depends on: 
name=fakeroot
version=1.20.2
release=1

source=(http://ftp.debian.org/debian/pool/main/f/$name/${name}_${version}.orig.tar.bz2)

build() {
    cd $name-$version
    ./configure --prefix=/usr \
                --libdir=/usr/lib/libfakeroot \
                --disable-static \
                --with-ipc=sysv
    make
    make DESTDIR=$PKG install

    install -dm755 $PKG/etc/ld.so.conf.d/
    echo '/usr/lib/libfakeroot' > $PKG/etc/ld.so.conf.d/fakeroot.conf
}
