### this file is sourced not run
PKGVER=1.1.1
PKGBUILD=1
PKGARCH=noarch

# source: james
TARBALL=crystal-cursors-built.tar.xz
MD5SUM=e4c7b95d69958d132612e14046af0bfb
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL

#TARBALL=Crystalcursors.tar.bz2
#MD5SUM=bbac6729334538ce15e3cc2c59962cfb
#SRC_URL=http://www.fosk.it/mart/files/$TARBALL
BUNDLE=

CURSOR_PATH=/usr/share/icons
CURSOR_NAME=crystals

SLACKREQ=
SLACKDESC="cursor-$CURSOR_NAME: cursor-$CURSOR_NAME $PKGVER (Cursor theme)
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: $CURSOR_NAME is a set of cursor themes based on 
cursor-$CURSOR_NAME: Crystal look and feel. There are four base themes
cursor-$CURSOR_NAME: inside, with left-handed and no-animated variants.
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME:
"

### standard pkg_download
### standard pkg_prepare
### standard pkg_package

pkg_build() {
	cd /tmp/crystal* &&
	cp -r * /usr/share/icons &&
	cd /usr/share/icons &&
	find . -maxdepth 1 -type d -name 'crystal*' | while read -r p; do
		(
			# fix missing symlinks		
			cd $p/cursors &&
			bash /tmp/pkg/fix_cursor_theme.sh &&

			# remove missing symlinks
			find . -xtype l -delete || return 1
		) || return 1
	done &&
	pkg_build_slackdesc
}
