mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/artwiz-cursor: Added (futuristic mouse cursor for X11)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
0ce5566779
commit
98c36712f2
5 changed files with 131 additions and 0 deletions
12
system/artwiz-cursor/README
Normal file
12
system/artwiz-cursor/README
Normal file
|
@ -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.
|
81
system/artwiz-cursor/artwiz-cursor.SlackBuild
Normal file
81
system/artwiz-cursor/artwiz-cursor.SlackBuild
Normal file
|
@ -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}
|
10
system/artwiz-cursor/artwiz-cursor.info
Normal file
10
system/artwiz-cursor/artwiz-cursor.info
Normal file
|
@ -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"
|
9
system/artwiz-cursor/doinst.sh
Normal file
9
system/artwiz-cursor/doinst.sh
Normal file
|
@ -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
|
19
system/artwiz-cursor/slack-desc
Normal file
19
system/artwiz-cursor/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue