0

xdotool: add 3.20211022.1

This commit is contained in:
eleksir
2024-01-06 19:04:38 +03:00
parent 435eb35b63
commit 50293af8b4
4 changed files with 146 additions and 0 deletions

10
xdotool/README Normal file
View File

@@ -0,0 +1,10 @@
xdotool (fake X11 keyboard/mouse input)
This tool lets you programatically (or manually) simulate keyboard
input and mouse activity, move and resize windows, etc. It does this
using X11's XTEST extension and other Xlib functions.
Example: focus the firefox url bar
xdotool search "Mozilla Firefox" windowactivate \
--sync key --clearmodifiers ctrl+l

19
xdotool/slack-desc Normal file
View 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------------------------------------------------------|
xdotool: xdotool (fake X11 keyboard/mouse input)
xdotool:
xdotool: This tool lets you programatically (or manually) simulate keyboard
xdotool: input and mouse activity, move and resize windows, etc. It does this
xdotool: using X11's XTEST extension and other Xlib functions.
xdotool:
xdotool:
xdotool:
xdotool:
xdotool:
xdotool:

107
xdotool/xdotool.SlackBuild Executable file
View File

@@ -0,0 +1,107 @@
#!/bin/bash
# Slackware build script for xdotool
# Copyright 2023 Sergei Fedosoff <eleksir@gmail.com>.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code 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 FREEBSD PROJECT OR CONTRIBUTORS 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.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xdotool
VERSION=${VERSION:-3.20211022.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_EXs}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
TMP=${TMP:-/tmp/EXs}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
COMMON="WITHOUT_RPATH_FIX=1 LDCONFIG=true"
LIBDIR=/usr/lib$LIBDIRSUFFIX
CFLAGS="-g $SLKCFLAGS -flto -rdynamic"
CXXFLAGS="-g $SLKCFLAGS -flto -rdynamic"
LDFLAGS="-flto -rdynamic -Wl,--export-dynamic -Wl,-E -Wl,--no-as-needed -Wl,-O2"
mkdir -p $PKG/$LIBDIR
make \
WARNFLAGS="$SLKCFLAGS -flto -rdynamic" \
PREFIX=/usr \
INSTALLLIB=$LIBDIR \
$COMMON
make install \
PREFIX=$PKG/usr \
INSTALLLIB=$PKG/$LIBDIR \
$COMMON
strip $PKG/usr/bin/$PRGNAM $PKG/usr/lib$LIBDIRSUFFIX/libxdo.so.?
make docs $PRGNAM.html
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
chmod 0644 examples/*.sh $PKG/usr/include/*.h
cp -a CHANGELIST README* COPYRIGHT examples $PRGNAM.html docs/html \
$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
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

10
xdotool/xdotool.info Normal file
View File

@@ -0,0 +1,10 @@
PRGNAM="xdotool"
VERSION="3.20211022.1"
HOMEPAGE="https://www.semicomplete.com/projects/xdotool/"
DOWNLOAD="https://github.com/jordansissel/xdotool/releases/download/v3.20211022.1/xdotool-3.20211022.1.tar.gz"
MD5SUM="9fd993a251a7c38b32381503544b0dd7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Sergei Fedosoff"
EMAIL="eleksir@gmail.com"