### this file is sourced not run
PKGVER=3.30.1 # any version after this is rubbish and incomplete
PKGBUILD=1
PKGARCH=noarch

### dummy template: collect icons from the full theme
TARBALL=adwaita-icon-theme-full-$PKGVER-$PKGARCH-$PKGBUILD.txz
MD5SUM=
SRC_URL=
BUNDLE=

SLACKREQ=''
SLACKDESC="adwaita-icon-theme: adwaita-icon-theme $PKGVER (GTK3 default icon theme)
adwaita-icon-theme: 
adwaita-icon-theme: The Adwaita Icon Theme package contains an icon theme for Gtk+ 3 
adwaita-icon-theme: applications.
adwaita-icon-theme: 
adwaita-icon-theme: This package does not include the cursors, and the large 
adwaita-icon-theme: 256x256 and 512x512 icons.
adwaita-icon-theme: 
adwaita-icon-theme: 
adwaita-icon-theme: 
adwaita-icon-theme:
"

PKG_NOMAKEPKG=yes
PKG_NOBUILD=yes

### nothing to download
unset -f pkg_download

pkg_prepare() {
	: do nothing
}

pkg_package() {
	if  [ -e $OUTPUT_DIR/$TARBALL ] ; then
		echo extracting $TARBALL
		mkdir tmp/adwaita
		tar -xf $OUTPUT_DIR/$TARBALL -C tmp/adwaita
		
		# remove stuff we don't want
		cd tmp/adwaita
		for p in cursors 256x256 512x512; do
			rm -rf ./usr/share/icons/Adwaita/$p
		done
		
		# build the package
		pkg_package_dir .
	else
		return 1
	fi
}

pkg_build() { 
	: do nothing
}

