diff options
Diffstat (limited to 'desktop/scrotwm/scrotwm.SlackBuild')
-rw-r--r--[-rwxr-xr-x] | desktop/scrotwm/scrotwm.SlackBuild | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/desktop/scrotwm/scrotwm.SlackBuild b/desktop/scrotwm/scrotwm.SlackBuild index f3263fdb89..396bdfd66b 100755..100644 --- a/desktop/scrotwm/scrotwm.SlackBuild +++ b/desktop/scrotwm/scrotwm.SlackBuild @@ -1,6 +1,5 @@ #!/bin/sh -e -# Build script for scrotwm # Copyright (c) 2010 Daniel LEVAI # All rights reserved. # @@ -25,11 +24,11 @@ # 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. -# -# Modified by the SlackBuilds.org project. + +# Build script for scrotwm PRGNAM=scrotwm -VERSION=0.9.22 +VERSION=0.9.23 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -52,10 +51,10 @@ fi set -e -rm -rf $PKG +rm -Rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION +rm -Rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tgz cd $PRGNAM-$VERSION chown -R root:root . @@ -66,26 +65,34 @@ find . \ -exec chmod 644 {} \; cd linux - CFLAGS="$SLKCFLAGS" make \ - LIBDIR=/usr/lib$LIBDIRSUFFIX \ - MANDIR=/usr/man PREFIX=/usr - - make install DESTDIR=$PKG \ - LIBDIR=/usr/lib$LIBDIRSUFFIX \ - MANDIR=/usr/man PREFIX=/usr + CFLAGS="$SLKCFLAGS" make \ + PREFIX=/usr \ + LIBDIR=/usr/lib${LIBDIRSUFFIX} \ + MANDIR=/usr/man + make install \ + PREFIX=/usr \ + LIBDIR=/usr/lib${LIBDIRSUFFIX} \ + MANDIR=/usr/man \ + DESTDIR=$PKG cd .. strip --strip-unneeded $PKG/usr/bin/scrotwm +# Fixup the manpages ( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p {es,it,ru}/man1 + for i in es it ru ; do + mkdir -p $i/man1 + mv man1/scrotwm_$i.1 $i/man1/scrotwm.1 + done ) +find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples/ cp -a scrotwm.conf initscreen.sh baraction.sh screenshot.sh \ $PKG/usr/doc/$PRGNAM-$VERSION/examples/ -cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc -type f -exec chmod 0644 {} \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |