#!/bin/sh ############################################### # Build script for: Rxvt-unicode X-Terminal # BuildRequires: x11, perl # Distribution: Slackware Linux 11.0 # Packager baldelario ~at~ gmail ~dot~ com # http://www.slacky.it # Guide: (http://www.slacky.it/misto/tutorial/spunleashed.txt); # (http://www.slacky.it/tutorial/slackbuild/Creare pacchetti tgz per # Slackware.txt) # Url: http://software.schmorp.de/#rxvt-unicode ############### CWD=`pwd` TMP=${TMP:-/tmp/tgz} PKG=$TMP/package-rxvt-unicode rm -rf $PKG mkdir -p $PKG NAME=rxvt-unicode VERSION=8.2 TARGET=i486 ARCH=${ARCH:-i486} BUILD=1bj if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" fi cd $TMP rm -rf $NAME-$VERSION tar xvjf $CWD/$NAME-$VERSION.tar.bz2 cd $NAME-$VERSION chown -R root:root . CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure --prefix=/usr \ --enable-everything --enable-shared --with-codeset=all \ --disable-debug \ $TARGET-slackware-linux 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 ) mkdir -p $PKG/usr/share/applications cp -a $CWD/*.desktop $PKG/usr/share/applications chmod 644 $PKG/usr/share/applications/* gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a \ Changes COPYING INSTALL MANIFEST README.configure doc/*.txt \ $PKG/usr/doc/$NAME-$VERSION chmod -R 755 $PKG/usr/doc/* find $PKG/usr/doc -type f -exec chmod 644 {} \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild cd $PKG requiredbuilder -y -v -s $CWD $PKG makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$NAME-$VERSION rm -rf $PKG fi