aboutsummaryrefslogtreecommitdiff
path: root/libraries/perl-tk/perl-tk.SlackBuild
diff options
context:
space:
mode:
authorPablo Santamaria <pablosantamaria@gmail.com>2010-08-14 13:52:44 -0500
committerErik Hanson <erik@slackbuilds.org>2010-08-14 19:04:51 -0500
commit09a8a1a6f54ff9bae5ece17cd35d65f5958eaf5c (patch)
treef6e479213ea4cde4d1d38633ea2c63896833089d /libraries/perl-tk/perl-tk.SlackBuild
parente25f8b8a498335a80b6024c72f64303c2bdc8b22 (diff)
libraries/perl-tk: Updated for version 804.029.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'libraries/perl-tk/perl-tk.SlackBuild')
-rw-r--r--libraries/perl-tk/perl-tk.SlackBuild31
1 files changed, 10 insertions, 21 deletions
diff --git a/libraries/perl-tk/perl-tk.SlackBuild b/libraries/perl-tk/perl-tk.SlackBuild
index 72caff28b3cd3..11b9d93e12a75 100644
--- a/libraries/perl-tk/perl-tk.SlackBuild
+++ b/libraries/perl-tk/perl-tk.SlackBuild
@@ -3,19 +3,16 @@
# Slackware build script for perl-tk (Tk)
# Written by Pablo Santamaria (pablosantamaria@gmail.com)
-# Thanks to Robby Workman for suggestions to improve this script.
PRGNAM=perl-tk
-VERSION=${VERSION:-804.028}
+VERSION=${VERSION:-804.029}
BUILD=${BUILD:-1}
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
@@ -39,7 +36,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -54,33 +51,27 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Apply a bunch of patches
+# Apply a few patches
patch -p1 < $CWD/$PRGNAM-$VERSION.diff
-# XFT=1 (font manager) support, which gives perl-tk programs the ability to
+# XFT=1 (font manager) support, which gives perl-tk programs the ability to
# use all fonts accessible from XFT and antialiasing.
-perl Makefile.PL XFT=1 INSTALLDIRS=vendor
+perl Makefile.PL \
+ XFT=1 \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN1DIR=/usr/man/man1 \
+ INSTALLVENDORMAN3DIR=/usr/man/man3 \
make OPTIMIZE="$SLKCFLAGS"
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Relocate man pages
-if [ -d $PKG/usr/share/man ] ; then
- mkdir -p $PKG/usr/man
- ( cd $PKG/usr/share
- mv man ..
- rmdir $PKG/usr/share )
-fi
-
-# Compress man pages
( 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
)
-# Remove perlocal.pod, .packlist and .bs from $PKG
( cd $PKG
find . -name perllocal.pod \
-o -name ".packlist" \
@@ -88,10 +79,8 @@ fi
| xargs rm -f
)
-# Remove empty directories
-find $PKG -depth -type d -empty -exec rm -rf {} \;
+find $PKG -depth -type d -empty -delete || true
-# Copy program documentation into the package
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING Change.log Changes Funcs.doc INSTALL PPM-HowTo README \
README.linux ToDo VERSIONS $PKG/usr/doc/$PRGNAM-$VERSION