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

# source: james
TARBALL=27913-PolarCursorThemes.tar.bz2
MD5SUM=886068e0feadd2a07c8b206b211548ec
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

CURSOR_PATH=/usr/share/icons
CURSOR_NAME=polar

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 from ECHM.
cursor-$CURSOR_NAME: There are three cursors. The default one is 
cursor-$CURSOR_NAME: PolarCursorTheme with orange busy theme.
cursor-$CURSOR_NAME: There are also the green and blue variant, 
cursor-$CURSOR_NAME: appropriately named.
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: https://www.gnome-look.org/p/999968/
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME:
"

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

pkg_build() {
	cd /tmp &&
	rm -r */Source */COPYRIGHT~ */index.theme~ &&
	cp -r Polar* /usr/share/icons &&
	cd /usr/share/icons &&
	find . -maxdepth 1 -type d -name 'Polar*' | 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
}
