### this file is sourced not run
PKGVER=2.3.1
PKGBUILD=1
PKGARCH=i686

# CLFS 2017.07 updated to LFS 11.3
TARBALL=acl-$PKGVER.tar.xz
MD5SUM=95ce715fe09acca7c12d3306d0f076b2
BUNDLE=fatdog-base-11.3.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$BUNDLE

SLACKREQ=libattr32
SLACKDESC="libacl32: libacl32 $PKGVER (Linux ACL library)  
libacl32:  
libacl32: The acl package contains utilities to administer Access Control Lists, 
libacl32: which are used to define more fine-grained discretionary access rights 
libacl32: for files and directories.  
libacl32: 
libacl32: This contains 32-bit version of the library.
libacl32: 
libacl32: 
libacl32: 
libacl32: 
"

### override download for LFS sources
# $1-src-dir $2-tarball 
pkg_download() {
	echo downloading $BUNDLE for $TARBALL
	wget -P $1 $SRC_URL
	tar -xf $1/$BUNDLE --strip-components=1 -C $1 
	rm $1/$BUNDLE
}

### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/acl*

	./configure $CONFFLAGS --docdir=/usr/share/doc/acl-$PKGVER &&
	make $MAKEFLAGS &&
	make install &&

	pkg_build_slackdesc
}


