From 50293af8b4ad428aed5ef070d182647fa65f4a73 Mon Sep 17 00:00:00 2001 From: eleksir Date: Sat, 6 Jan 2024 19:04:38 +0300 Subject: [PATCH] xdotool: add 3.20211022.1 --- xdotool/README | 10 ++++ xdotool/slack-desc | 19 +++++++ xdotool/xdotool.SlackBuild | 107 +++++++++++++++++++++++++++++++++++++ xdotool/xdotool.info | 10 ++++ 4 files changed, 146 insertions(+) create mode 100644 xdotool/README create mode 100644 xdotool/slack-desc create mode 100755 xdotool/xdotool.SlackBuild create mode 100644 xdotool/xdotool.info diff --git a/xdotool/README b/xdotool/README new file mode 100644 index 0000000..6f65856 --- /dev/null +++ b/xdotool/README @@ -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 diff --git a/xdotool/slack-desc b/xdotool/slack-desc new file mode 100644 index 0000000..bf6c82c --- /dev/null +++ b/xdotool/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------------------------------------------------------| +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: diff --git a/xdotool/xdotool.SlackBuild b/xdotool/xdotool.SlackBuild new file mode 100755 index 0000000..a0feb34 --- /dev/null +++ b/xdotool/xdotool.SlackBuild @@ -0,0 +1,107 @@ +#!/bin/bash + +# Slackware build script for xdotool + +# Copyright 2023 Sergei Fedosoff . +# 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 diff --git a/xdotool/xdotool.info b/xdotool/xdotool.info new file mode 100644 index 0000000..1403ffd --- /dev/null +++ b/xdotool/xdotool.info @@ -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"