aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2013-03-03 12:59:05 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-03-03 12:59:05 -0600
commit98c36712f2572600997edf1d3c27c28d85218c9e (patch)
tree7ec87a96ab574d4c66a24dac04a51b00603452be /system
parent0ce556677919eac99d16740c81f84ba91cb45bda (diff)
system/artwiz-cursor: Added (futuristic mouse cursor for X11)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/artwiz-cursor/README12
-rw-r--r--system/artwiz-cursor/artwiz-cursor.SlackBuild81
-rw-r--r--system/artwiz-cursor/artwiz-cursor.info10
-rw-r--r--system/artwiz-cursor/doinst.sh9
-rw-r--r--system/artwiz-cursor/slack-desc19
5 files changed, 131 insertions, 0 deletions
diff --git a/system/artwiz-cursor/README b/system/artwiz-cursor/README
new file mode 100644
index 0000000000000..624e417d6e9ea
--- /dev/null
+++ b/system/artwiz-cursor/README
@@ -0,0 +1,12 @@
+Artwiz fonts are small futuristic ASCII and mouse cursor fonts for X.
+This package only contains the artwiz mouse cursor font.
+
+This package is intended to replace x/font-cursor-misc from Slackware.
+Uninstall the font-cursor-misc package just before installing this one.
+Alternatively, read the comments in the SlackBuild script for instructions on
+how to choose between the two when both are installed.
+
+After installation you will need to restart X for the changes to take effect.
+
+After uninstallation you will need to reinstall the font-cursor-misc package
+so that X can find the appropriate cursor font the next time it starts.
diff --git a/system/artwiz-cursor/artwiz-cursor.SlackBuild b/system/artwiz-cursor/artwiz-cursor.SlackBuild
new file mode 100644
index 0000000000000..c9a61d1f3b397
--- /dev/null
+++ b/system/artwiz-cursor/artwiz-cursor.SlackBuild
@@ -0,0 +1,81 @@
+#!/bin/sh
+
+# Slackware build script for artwiz-cursor
+
+# Copyright 2013 Kyle Guinn <elyk03@gmail.com>, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=artwiz-cursor
+VERSION=${VERSION:-1.3}
+ARCH=noarch
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+SRCNAM=artwiz-aleczapka-en
+DOCS="AUTHORS COPYING README"
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
+cd $SRCNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go-w,a+rX-st .
+
+# The x/font-cursor-misc package already contains a file named "cursor.pcf.gz".
+# Rename the file in this package to "artwiz-cursor.pcf.gz" so we don't clobber
+# the original. This also lets us have both packages installed simultaneously.
+install -m 0644 -D cursor.pcf $PKG/usr/share/fonts/misc/artwiz-cursor.pcf
+find $PKG/usr/share/fonts/misc -type f -exec gzip -9 {} \;
+
+# It is possible to have both this package and x/font-cursor-misc installed at
+# the same time. When mkfontdir runs, it will find that both files contain a
+# font named "cursor", then will choose one (I don't know what criteria it
+# uses) and will add an entry for it to the fonts.dir file. X will find the
+# entry and use the corresponding cursor font file.
+#
+# To switch between cursor fonts, edit /usr/share/fonts/misc/fonts.dir and
+# change the line
+# cursor.pcf.gz cursor
+# to
+# artwiz-cursor.pcf.gz cursor
+# then restart X.
+#
+# You may have to repeat this step every time you run mkfontdir in
+# /usr/share/fonts/misc (such as after you add other fonts).
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/artwiz-cursor/artwiz-cursor.info b/system/artwiz-cursor/artwiz-cursor.info
new file mode 100644
index 0000000000000..e2addbcc8e1e6
--- /dev/null
+++ b/system/artwiz-cursor/artwiz-cursor.info
@@ -0,0 +1,10 @@
+PRGNAM="artwiz-cursor"
+VERSION="1.3"
+HOMEPAGE="http://artwizaleczapka.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/artwizaleczapka/artwiz-aleczapka-en-1.3.tar.bz2"
+MD5SUM="6c6c704f2f08f9d6308d366423dfa90e"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
diff --git a/system/artwiz-cursor/doinst.sh b/system/artwiz-cursor/doinst.sh
new file mode 100644
index 0000000000000..887e0649389ae
--- /dev/null
+++ b/system/artwiz-cursor/doinst.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir ]; then
+ /usr/bin/mkfontscale /usr/share/fonts/misc
+ /usr/bin/mkfontdir /usr/share/fonts/misc
+fi
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi
diff --git a/system/artwiz-cursor/slack-desc b/system/artwiz-cursor/slack-desc
new file mode 100644
index 0000000000000..629cecce96a92
--- /dev/null
+++ b/system/artwiz-cursor/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+artwiz-cursor: artwiz-cursor (futuristic mouse cursor for X11)
+artwiz-cursor:
+artwiz-cursor: Artwiz fonts are small futuristic ASCII and mouse cursor fonts for X.
+artwiz-cursor: This package only contains the artwiz mouse cursor font.
+artwiz-cursor:
+artwiz-cursor:
+artwiz-cursor:
+artwiz-cursor:
+artwiz-cursor:
+artwiz-cursor:
+artwiz-cursor: