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

# source: james
TARBALL=cursor-redhat9.tar.bz2
MD5SUM=3467b6ed34d1122f203f50042314b1f2
SRC_URL=https://dl.opendesktop.org/api/files/downloadfile/id/1460734691/s/743d9b62ca417fffd3d3f0b1b7781363/t/1514304492/5600-redhat9cursor.tar.gz
BUNDLE=

CURSOR_PATH=/usr/share/icons
CURSOR_NAME=redhat9

SLACKREQ=
SLACKDESC="cursor-$CURSOR_NAME: cursor-$CURSOR_NAME $PKGVER (Cursor theme)
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: $CURSOR_NAME cursor theme - from the obvious source.
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: https://store.kde.org/content/show.php?content=5600
cursor-$CURSOR_NAME: 
cursor-$CURSOR_NAME: Missing COPY, MOVE, ALIAS, C_HAND, 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 &&
	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=Redhat9 Cursors
Comment=Red Hat Linux 9 black shadow cursor 
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
}
