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

# source: james
TARBALL=cursor-jaguarx.tar.bz2
MD5SUM=02aa1e61363a5940ae952a64dc098d71
#SRC_URL="https://store.kde.org/p/999621/startdownload?file_id=1460734496&file_name=6679-jaguarx.tar.bz2&file_type=application/x-bzip2&file_size=197025&url=https%3A%2F%2Fdl.opendesktop.org%2Fapi%2Ffiles%2Fdownload%2Fid%2F1460734496%2Fs%2F838e16320a1266c0ecc634a9762aeb36%2Ft%2F1538167474%2Fu%2F%2F6679-jaguarx.tar.bz2"
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL # origina source URL changes too often, use our copy instead
BUNDLE=

CURSOR_PATH=/usr/share/icons
CURSOR_NAME=jaguarx

SLACKREQ=
SLACKDESC="cursor-$CURSOR_NAME: cursor-$CURSOR_NAME $PKGVER (Cursor theme)
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: jaguarx cursor theme
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: https://store.kde.org/content/show.php?content=6679
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: NOTE: Missing MOVE, O_HAND
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME:
"

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

pkg_build() { 
	mkdir -p $CURSOR_PATH/$CURSOR_NAME &&
	cd /tmp/jaguarx* &&
	find cursors -xtype l -delete && # remove broken links
	cp -r cursors $CURSOR_PATH/$CURSOR_NAME
	cat >> $CURSOR_PATH/$CURSOR_NAME/index.theme << EOF &&
[Icon Theme]
Name=JaguarX Cursors
Comment=Reminds me of some other OS ...
Inherits=core
EOF
    # fix missing symlinks
    cd $CURSOR_PATH/$CURSOR_NAME/cursors &&
    bash /tmp/pkg/fix_cursor_theme.sh &&

   	# remove missing symlinks
	find . -xtype l -delete && # remove broken links

	pkg_build_slackdesc
}
