### 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://dl.opendesktop.org/api/files/downloadfile/id/1460734496/s/fca38fa0fe2a5f600439e2a05642d33d/t/1514303809/6679-jaguarx.tar.bz2
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
}
