desktop/wmctrl: Updated for version 1.07

This commit is contained in:
Vasilis Papavasileiou 2010-05-13 00:23:25 +02:00 committed by Robby Workman
parent 513698d528
commit eb78a5075f
2 changed files with 23 additions and 11 deletions

View File

@ -10,6 +10,7 @@ VERSION=1.07
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
@ -19,34 +20,43 @@ DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README"
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1 cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION || exit 1 cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
|| exit 1 --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc/X11/WindowMaker \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
make || exit 1 make
make install DESTDIR=$PKG || exit 1 make install DESTDIR=$PKG
( cd $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 "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
) )
( cd $PKG/usr/man ( cd $PKG/usr/man ; find . -type f -exec gzip -9 {} \; )
find . -type f -exec gzip -9 {} \;
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cp $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
@ -56,4 +66,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -3,6 +3,8 @@ VERSION="1.07"
HOMEPAGE="http://sweb.cz/tripie/utils/wmctrl" HOMEPAGE="http://sweb.cz/tripie/utils/wmctrl"
DOWNLOAD="http://sweb.cz/tripie/utils/wmctrl/dist/wmctrl-1.07.tar.gz" DOWNLOAD="http://sweb.cz/tripie/utils/wmctrl/dist/wmctrl-1.07.tar.gz"
MD5SUM="1fe3c7a2caa6071e071ba34f587e1555" MD5SUM="1fe3c7a2caa6071e071ba34f587e1555"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Vasilis Papavasileiou" MAINTAINER="Vasilis Papavasileiou"
EMAIL="el03020@mail.ntua.gr" EMAIL="el03020@mail.ntua.gr"
APPROVED="rworkman" APPROVED="rworkman"