summaryrefslogtreecommitdiff
path: root/misc/gxmessage/gxmessage.SlackBuild
diff options
context:
space:
mode:
authorslakmagik <slakmagik@gmail.com>2011-03-01 09:34:36 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-03-01 09:34:36 -0600
commitdd3b109091b5f407b318843ad2c98a875b240869 (patch)
tree62bc649d8da6d73328694d145124a99c8cfd0ad7 /misc/gxmessage/gxmessage.SlackBuild
parent99c68a8498ff0c4be00fb2be5680f931d84ce5cc (diff)
downloadslackbuilds-dd3b109091b5f407b318843ad2c98a875b240869.tar.gz
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/gxmessage/gxmessage.SlackBuild')
-rw-r--r--misc/gxmessage/gxmessage.SlackBuild27
1 files changed, 11 insertions, 16 deletions
diff --git a/misc/gxmessage/gxmessage.SlackBuild b/misc/gxmessage/gxmessage.SlackBuild
index 515c42b0ae..3f41e93cdf 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