diff options
author | Paul Wisehart <wise@lupulin.net> | 2010-05-13 00:41:02 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:41:02 +0200 |
commit | cc0f35d99e25584baade0872396858b3a566f3c8 (patch) | |
tree | ae6c0861621d2af1bd968def8b53c1c0c4f8179c /system/mrxvt/mrxvt.SlackBuild | |
parent | 716aef8e73830f2ee9e1d2fe4328e5916ee15352 (diff) |
system/mrxvt: Updated for version 0.5.4
Diffstat (limited to 'system/mrxvt/mrxvt.SlackBuild')
-rw-r--r-- | system/mrxvt/mrxvt.SlackBuild | 61 |
1 files changed, 29 insertions, 32 deletions
diff --git a/system/mrxvt/mrxvt.SlackBuild b/system/mrxvt/mrxvt.SlackBuild index a897194f669e9..ce90d682f3fe7 100644 --- a/system/mrxvt/mrxvt.SlackBuild +++ b/system/mrxvt/mrxvt.SlackBuild @@ -1,31 +1,20 @@ #!/bin/sh -### mrxvt.SlackBuild ### - -# Slackware build script for mrxvt 0.5.2 -# Copyright (C) 2006 paul wisehart wise@lupulin.net -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Slackware build script for mrxvt +# Written by Paul Wisehart wise@lupulin.net set -e -PKGNAME=mrxvt -VERSION=0.5.3 +PKGNAM=mrxvt +VERSION=0.5.4 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=$(pwd) + +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PKGNAME +PKG=$TMP/package-$PKGNAM OUTPUT=${OUTPUT:-/tmp} # Number of lines to save in scroll buffer @@ -35,27 +24,32 @@ SAVELINES=${SAVELINES:-500} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PKGNAME-$VERSION -tar xvf $CWD/$PKGNAME-$VERSION.tar.gz -cd $PKGNAME-$VERSION +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.gz +cd $PKGNAM-$VERSION chown -R root:root . chmod -R a-s,u+rw,go+r-w . -patch -p0 < $CWD/no-scroll-with-buffer-mrxvt-0.5.3.patch - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --with-save-lines=$SAVELINES \ --enable-xft \ @@ -69,17 +63,20 @@ make make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) -mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \ - $PKG/usr/doc/$PKGNAME-$VERSION -mv $PKG/usr/share/doc/$PKGNAME/* $PKG/usr/doc/$PKGNAME-$VERSION/ -rmdir $PKG/usr/share/doc/$PKGNAME -cat $CWD/$PKGNAME.SlackBuild > $PKG/usr/doc/$PKGNAME-$VERSION/$PKGNAME.SlackBuild -( cd $PKG/usr/doc/$PKGNAME-$VERSION + $PKG/usr/doc/$PKGNAM-$VERSION +mv $PKG/usr/share/doc/$PKGNAM/* $PKG/usr/doc/$PKGNAM-$VERSION/ +rmdir $PKG/usr/share/doc/$PKGNAM +cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild + +( cd $PKG/usr/doc/$PKGNAM-$VERSION for i in *.bz2 ; do bunzip2 $i ; done @@ -106,4 +103,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |