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

# source: james
TARBALL=ComixCursors-0.9.1.tar.bz2
MD5SUM=3b8bfd114f7f4b2801e9c3ce02b38c9e
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

CURSOR_PATH=/usr/share/icons
CURSOR_NAME=comix

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 with comics
cursor-$CURSOR_NAME: feeling. This package only contains the standard
cursor-$CURSOR_NAME: black theme.
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: https://www.gnome-look.org/p/999996/
cursor-$CURSOR_NAME: https://limitland.gitlab.io/comixcursors/	
cursor-$CURSOR_NAME: https://gitlab.com/limitland/comixcursors
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME:
"

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

pkg_build() {
	cd /tmp &&
	cp -r ComixCursors-Black /usr/share/icons/ComixCursors &&
	cd /usr/share/icons &&
	find . -maxdepth 1 -type d -name 'Comix*' | 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
}
