aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accessibility/xwit/README10
-rw-r--r--accessibility/xwit/slack-desc19
-rw-r--r--accessibility/xwit/xwit.SlackBuild79
-rw-r--r--accessibility/xwit/xwit.info12
4 files changed, 120 insertions, 0 deletions
diff --git a/accessibility/xwit/README b/accessibility/xwit/README
new file mode 100644
index 0000000000..e94cb18761
--- /dev/null
+++ b/accessibility/xwit/README
@@ -0,0 +1,10 @@
+xwit (X Window Interface Tool)
+
+xwit is a hodge-podge collection of simple routines to call some
+of those X11 functions that don't already have any utility commands
+built around them. The reasoning behind this is that loosely every X
+function should be accessible from a shell script.
+
+Note: xwit is old and mostly unmaintained. It's included only for
+compatibility with old scripts that use it. New software should use
+xdotool rather than xwit.
diff --git a/accessibility/xwit/slack-desc b/accessibility/xwit/slack-desc
new file mode 100644
index 0000000000..84ffa1e866
--- /dev/null
+++ b/accessibility/xwit/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------------------------------------------------------|
+xwit: xwit (X Window Interface Tool)
+xwit:
+xwit: xwit is a hodge-podge collection of simple routines to call some
+xwit: of those X11 functions that don't already have any utility commands
+xwit: built around them. The reasoning behind this is that loosely every X
+xwit: function should be accessible from a shell script.
+xwit:
+xwit:
+xwit:
+xwit:
+xwit:
diff --git a/accessibility/xwit/xwit.SlackBuild b/accessibility/xwit/xwit.SlackBuild
new file mode 100644
index 0000000000..4b45893e24
--- /dev/null
+++ b/accessibility/xwit/xwit.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/bash
+
+# Slackware build script for xwit
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=xwit
+VERSION=${VERSION:-3.4_16}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" -o "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
+set -e
+
+SRCVER=${VERSION%_*} # 1.23_4 => 1.23
+DEBVER=${VERSION#*_} # 1.23_4 => 4
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$SRCVER.orig
+tar xvf $CWD/${PRGNAM}_$SRCVER.orig.tar.gz
+cd $PRGNAM-$SRCVER.orig
+tar xvf $CWD/${PRGNAM}_$SRCVER-$DEBVER.debian.tar.xz
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod -h 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod -h 644 {} +
+
+for i in $( cat debian/patches/series ); do
+ patch -p1 < debian/patches/$i
+done
+
+make CFLAGS="$SLKCFLAGS"
+
+mkdir -p $PKG/usr/{bin,man/man1}
+install -s -m0755 xwit $PKG/usr/bin
+gzip -9c < xwit.man > $PKG/usr/man/man1/xwit.1.gz
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a README $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/accessibility/xwit/xwit.info b/accessibility/xwit/xwit.info
new file mode 100644
index 0000000000..00509d58b0
--- /dev/null
+++ b/accessibility/xwit/xwit.info
@@ -0,0 +1,12 @@
+PRGNAM="xwit"
+VERSION="3.4_16"
+HOMEPAGE="https://packages.debian.org/sid/xwit"
+DOWNLOAD="http://deb.debian.org/debian/pool/main/x/xwit/xwit_3.4.orig.tar.gz \
+ http://deb.debian.org/debian/pool/main/x/xwit/xwit_3.4-16.debian.tar.xz"
+MD5SUM="bac527aab86715fcd76f44d9cf970ade \
+ 604252eb161bacb89d1b22e5f3299411"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"