system/wterm: Script cleanup.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Yanes Checcacci Balod 2014-04-06 09:45:35 +07:00 committed by Willy Sudiarto Raharjo
parent 0015ed32bc
commit a9a7decf09

View file

@ -24,7 +24,7 @@
PRGNAM=wterm
VERSION=${VERSION:-6.2.9}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -82,8 +82,6 @@ CXXFLAGS="$SLKCFLAGS" \
--with-x \
--with-xpm \
--enable-xpm-background \
--bindir=/usr/lib${LIBDIRSUFFIX}/GNUstep/Applications/Wterm \
--mandir=/usr/lib${LIBDIRSUFFIX}/GNUstep/Applications/Wterm
make
make install DESTDIR=$PKG
@ -94,23 +92,12 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
### FIX! Remove DIRECTORY and move FILES!
mkdir -p $PKG/usr/man/man1
mv $PKG/usr/lib${LIBDIRSUFFIX}/GNUstep/Applications/Wterm/man1/* $PKG/usr/man/man1
rmdir $PKG/usr/lib${LIBDIRSUFFIX}/GNUstep/Applications/Wterm/man1
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
### FIX! Create Utils in /usr/doc/wterm-$VERSION!
cp -rv doc/* $PKG/usr/doc/$PRGNAM-$VERSION/
### FIX! Simbolic LINK on $PATH!
mkdir $PKG/usr/bin
cd $PKG
(
ln -s /usr/lib${LIBDIRSUFFIX}/GNUstep/Applications/Wterm/wterm usr/bin/wterm #Source file link does not exist, yet! Don't change it!!!
)
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc