desktop/wmweather: Updated for version 2.4.4

This commit is contained in:
Cezary M. Kruk 2010-05-13 00:23:36 +02:00 committed by David Somero
parent 9917dea7d7
commit 0b9deaceef
4 changed files with 33 additions and 9 deletions

View File

@ -0,0 +1,15 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/X11/WindowMaker/wmweather.conf.new

View File

@ -15,5 +15,5 @@ wmweather: METAR station designations and current weather reports are designed
wmweather: for use by the aviation community. Since most major cities have at
wmweather: least one airport, there is usually one or more METAR stations in a
wmweather: given city.
wmweather:
wmweather:
wmweather:
wmweather:

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.orig.tar.gz
tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@ -44,15 +47,20 @@ cd src
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc/X11/WindowMaker \
--localstatedir=/var \
--mandir=/usr/man \
--disable-debug
--disable-debug \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
cd -
mv $PKG/etc/X11/WindowMaker/wmweather.conf \
$PKG/etc/X11/WindowMaker/wmweather.conf.new
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
@ -66,13 +74,12 @@ cd -
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES COPYING README \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
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/$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="2.4.4"
HOMEPAGE="http://freshmeat.net/users/godisch/"
DOWNLOAD="http://ftp.de.debian.org/debian/pool/main/w/wmweather/wmweather_2.4.4.orig.tar.gz"
MD5SUM="4aad93bb539c0743f71e28c87267df92"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Cezary M. Kruk"
EMAIL="c.kruk@bigfoot.com"
APPROVED="dsomero"