misc/gxmessage: Miscellaneous cleanups

Expand the previously terse README/slack-desc. Remove unneeded comments
and configure flags. Move the NLS setting to my usual settings location
so people who hand-edit don't have to look for magic settings. Make the
chmod boilerplate fit within 80 columns like all my other scripts. Use
'install-strip'. Fix old-style man page handling. Join a uselessly split
line.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
slakmagik 2011-03-01 09:34:36 -06:00 committed by Robby Workman
parent 99c68a8498
commit dd3b109091
3 changed files with 22 additions and 23 deletions

View File

@ -1,3 +1,7 @@
gxmessage is a GTK based xmessage clone.
Gxmessage is an xmessage clone for GTK based desktops. Gxmessage pops up
a dialog window, displays a given message or question, then waits for
the user's response. That response is returned as the program's exit
code. Because gxmessage is a drop-in alternative to xmessage, gxmessage
accepts any option xmessage would, and returns the same exit codes.
If you wish to disable NLS, pass 'NLS=disable' to the SlackBuild.

View File

@ -34,12 +34,10 @@ VERSION=${VERSION:-2.12.4}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -63,6 +61,8 @@ else
LIBDIRSUFFIX=""
fi
NLS=${NLS:-enable}
set -e
rm -rf $PKG
@ -75,34 +75,29 @@ chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--${NLS:-enable}-nls \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--infodir=/usr/info \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--infodir=/usr/info \
--$NLS-nls \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
make DESTDIR=$PKG install-strip
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l); do ln -s $(readlink $i).gz $i.gz; rm $i; done
)
find $PKG/usr/man -type f -exec gzip -9 {} \;
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [ACHINRT]* examples \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a [ACHINRT]* examples $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View File

@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
gxmessage: gxmessage (GTK xmessage clone)
gxmessage:
gxmessage: gxmessage is a replacement for the xmessage athena-widget tool.
gxmessage: It follows closely the original functionality and interface.
gxmessage: It can be used in scripts to provide simple graphical input
gxmessage: or information.
gxmessage: Gxmessage is an xmessage clone for GTK based desktops. Gxmessage
gxmessage: pops up a dialog window, displays a given message or question, then
gxmessage: waits for the user's response. That response is returned as the
gxmessage: program's exit code. Because gxmessage is a drop-in alternative to
gxmessage: xmessage, gxmessage accepts any option xmessage would, and returns
gxmessage: the same exit codes.
gxmessage:
gxmessage: Homepage:
gxmessage: http://homepages.ihug.co.nz/~trmusson/programs.html#gxmessage
gxmessage:
gxmessage: