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

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

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

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/lib &&
		
		# package
		cd ../.. &&
		pkg_package_dir
	else
		return 1
	fi
}

pkg_build() { 
	: do nothing
}
