summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
author slakmagik <slakmagik@gmail.com>2011-03-01 09:34:36 -0600
committer Robby Workman <rworkman@slackbuilds.org>2011-03-01 09:34:36 -0600
commitdd3b109091b5f407b318843ad2c98a875b240869 (patch)
tree62bc649d8da6d73328694d145124a99c8cfd0ad7 /misc
parent99c68a8498ff0c4be00fb2be5680f931d84ce5cc (diff)
downloadslackbuilds-dd3b109091b5f407b318843ad2c98a875b240869.tar.gz
slackbuilds-dd3b109091b5f407b318843ad2c98a875b240869.tar.xz
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>
Diffstat (limited to 'misc')
-rw-r--r--misc/gxmessage/README6
-rw-r--r--misc/gxmessage/gxmessage.SlackBuild27
-rw-r--r--misc/gxmessage/slack-desc12
3 files changed, 22 insertions, 23 deletions
diff --git a/misc/gxmessage/README b/misc/gxmessage/README
index 227cce0654b..684ac412e9a 100644
--- a/misc/gxmessage/README
+++ b/misc/gxmessage/README
@@ -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.
diff --git a/misc/gxmessage/gxmessage.SlackBuild b/misc/gxmessage/gxmessage.SlackBuild
index 515c42b0ae9..3f41e93cdf1 100644
--- a/misc/gxmessage/gxmessage.SlackBuild
+++ b/misc/gxmessage/gxmessage.SlackBuild
@@ -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
@@ -73,36 +73,31 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
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 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 {} \;
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
diff --git a/misc/gxmessage/slack-desc b/misc/gxmessage/slack-desc
index 9030e2e3edd..9f95bfea28a 100644
--- a/misc/gxmessage/slack-desc
+++ b/misc/gxmessage/slack-desc
@@ -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: