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

### dummy template: collect all libs from gcc.
TARBALL=$PKGNAME-$PKGVER-$PKGARCH-$PKGBUILD.txz # this is the output tarball
MD5SUM=
SRC_URL=gcc-full-$PKGVER-x86_64-1.txz
BUNDLE=

SLACKREQ=
SLACKDESC="aaa-gcclibs-full32: aaa-gcclibs-full32 $PKGVER (Libs from gcc-full)  
aaa-gcclibs32:  
aaa-gcclibs32: This package is a collection of essential libraries that comes 
aaa-gcclibs32: with GCC that is needed by *all* applications. This package 
aaa-gcclibs32: enables apps to run without gcc installed.  
aaa-gcclibs32: 
aaa-gcclibs32: This is the version that has the complete libraries from all
aaa-gcclibs32: gcc compilers (gcc-full) - such has libgcj, etc.
aaa-gcclibs32: 
aaa-gcclibs32: This contains the 64-bit libraries only.
aaa-gcclibs32:
"

PKG_NOMAKEPKG=yes
PKG_NOBUILD=yes

pkg_prepare() {
	: do nothing
}

pkg_download() {
	: do nothing
}

pkg_package() {
	if  [ -e $OUTPUT_DIR/$SRC_URL ] ; then
		echo extracting $SRC_URL
		tar -xf $OUTPUT_DIR/$SRC_URL -C tmp/pkg &&
		
		# clean up unnecessary stuff
		cd tmp/pkg &&
		rm -rf lib* root install 2> /dev/null &&
		rm -rf usr/bin usr/include usr/share 2> /dev/null &&
		rm -rf usr/lib*/gcc 2> /dev/null &&
		find . -type f -a ! -name '*so*' -delete &&
		rm -rf usr/lib64 &&
		
		# package
		cd ../.. &&
		pkg_package_dir
	else
		return 1
	fi
}

pkg_build() { 
	: do nothing
}
