diff options
Diffstat (limited to 'accessibility/xdotool/xdotool.SlackBuild')
-rw-r--r-- | accessibility/xdotool/xdotool.SlackBuild | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/accessibility/xdotool/xdotool.SlackBuild b/accessibility/xdotool/xdotool.SlackBuild index a77b00bbf2..e305d7dd60 100644 --- a/accessibility/xdotool/xdotool.SlackBuild +++ b/accessibility/xdotool/xdotool.SlackBuild @@ -1,20 +1,26 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for xdotool # Written by B. Watson (yalhcru@gmail.com) +# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details. + +# 20120411 bkw: +# - updated for xdotool 2.20110530.1. +# - install CHANGELIST in doc dir +# - make & install HTML doc instead of raw POD doc +# - fix permissions in examples/ + PRGNAM=xdotool -VERSION=${VERSION:-2.20101012.3049} +VERSION=${VERSION:-2.20110530.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -49,18 +55,21 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . -make WARNFLAGS="$SLKCFLAGS" PREFIX=/usr INSTALLLIB=$PKG/usr/lib$LIBDIRSUFFIX - mkdir -p $PKG/usr/bin $PKG/usr/man/man1 + +make WARNFLAGS="$SLKCFLAGS" PREFIX=/usr INSTALLLIB=$PKG/usr/lib$LIBDIRSUFFIX make install PREFIX=$PKG/usr INSTALLLIB=$PKG/usr/lib$LIBDIRSUFFIX +make $PRGNAM.html -strip --strip-unneeded $PKG/usr/bin/$PRGNAM 2>/dev/null || true +strip --strip-unneeded $PKG/usr/bin/$PRGNAM gzip -9 $PKG/usr/man/man1/$PRGNAM.1 +chmod 755 examples/*.sh + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - README COPYRIGHT examples xdotool.pod \ - $PKG/usr/doc/$PRGNAM-$VERSION + CHANGELIST README COPYRIGHT examples $PRGNAM.html \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |