### this file is sourced not run
PKGVER=1.22.debian2
PKGBUILD=1
PKGARCH=x86_64

# source: james/debian
TARBALL=fakeroot_1.22.orig.tar.bz2
MD5SUM=fae64c9aeb2c895ead8e1b99bf50c631
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ=libcap2
SLACKDESC="fakeroot: fakeroot $PKGVER (Emulate being root)  
fakeroot:  
fakeroot: Enables a non-root program to pretend to do things on filesystem 
fakeroot: that usually requires root permission. It does not do any privilege 
fakeroot: escalation, as far as the system is concerned it is still executing 
fakeroot: with standard privileges; only that the program run-time environment 
fakeroot: is modified so that from the program view point it looks as if it 
fakeroot: has root permission. This is mostly useful for development purposes. 
fakeroot:  
fakeroot: 
fakeroot:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/fakeroot*
	tar -xf ../pkg/fakeroot_1.22-2.debian.tar.xz
	for p in $(cat debian/patches/series); do
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static"
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


