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

# source: JakeSFR
TARBALL=cursor-aero-58853-42734-aeromousetheme11.tar.gz
MD5SUM=292fe645d884b415150b2de5cedbae39
#SRC_URL=https://www.opendesktop.org/c/1460735068 # this is unstable link, use our copy instead
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$TARBALL
BUNDLE=

CURSOR_PATH=/usr/share/icons
CURSOR_NAME=aero

SLACKREQ=
SLACKDESC="cursor-$CURSOR_NAME: cursor-$CURSOR_NAME $PKGVER (Cursor theme)
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: $CURSOR_NAME cursor theme
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: https://www.gnome-look.org/p/999844/
cursor-$CURSOR_NAME: https://www.opendesktop.org/c/1460735068
cursor-$CURSOR_NAME: https://store.kde.org/p/999844
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 &&
	mkdir -p /usr/share/icons/aero &&
	cp -r aero/cursors* /usr/share/icons/aero

	# fix missing symlinks
	for p in /usr/share/icons/aero*; do
	(
		cd $p/cursors &&
		bash /tmp/pkg/fix_cursor_theme.sh &&

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

}
