desktop/wmSun: Updated for version 1.03

This commit is contained in:
Cezary M. Kruk 2010-05-13 00:23:20 +02:00 committed by Robby Workman
parent 1f7242ec73
commit edb57c20c0
3 changed files with 31 additions and 26 deletions

View file

@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp}
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
set -e
@ -30,7 +33,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@ -39,20 +42,21 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# We have to "make clean" first, because guess what's in there already?
# wmSun: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
# dynamically linked (uses shared libs), not stripped
# Anyone want to guess how that ends on an x86_64 system? :-)
cd wmSun
mkdir $PKG/usr
mkdir $PKG/bin
mkdir -p $PKG/man/man1
CFLAGS="$SLKCFLAGS" make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/{bin,man/man1}
make clean
make \
CFLAGS="$SLKCFLAGS" \
INCDIR="-I/usr/include/X11" \
LIBDIR="-L/usr/lib${LIBDIRSUFFIX}/X11"
make install DESTDIR=$PKG/usr
cd -
# Executable and manual are already installed;
# we just move them to the correct location
mv $PKG/bin $PKG/usr
mv $PKG/man $PKG/usr
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
@ -74,5 +78,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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

@ -1,8 +1,10 @@
PRGNAM="wmSun"
VERSION="1.03"
HOMEPAGE="http://dockapps.org/file.php/id/16"
DOWNLOAD="http://dockapps.org/download.php/id/23/wmSun-1.03.tar.gz"
MD5SUM="34a2ea132f1a04e18be2d93abce40722"
HOMEPAGE="http://www.cs.mun.ca/~gstarkes/wmaker/dockapps/time.html#wmsun"
DOWNLOAD="http://www.cs.mun.ca/~gstarkes/wmaker/dockapps/files/wmSun-1.03.tar.gz"
MD5SUM="defc6747ebdb64b5d3afe91f916d3acc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Cezary M. Kruk"
EMAIL="c.kruk@bigfoot.com"
APPROVED="dsomero"
APPROVED="rworkman"