summaryrefslogtreecommitdiff
path: root/system/prelink/prelink.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/prelink/prelink.SlackBuild')
-rw-r--r--system/prelink/prelink.SlackBuild23
1 files changed, 13 insertions, 10 deletions
diff --git a/system/prelink/prelink.SlackBuild b/system/prelink/prelink.SlackBuild
index 9c5169d00b..97b71cc8ca 100644
--- a/system/prelink/prelink.SlackBuild
+++ b/system/prelink/prelink.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=prelink
VERSION=${VERSION:-20100106}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -36,7 +36,7 @@ if [ -z "$ARCH" ]; then
fi
CWD=$(pwd)
-TPM=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -59,9 +59,11 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM
+mv $PRGNAM $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -80,11 +82,8 @@ CXXFLAGS="$SLKFLAGS" \
--build=$ARCH-slackware-linux
make
-make -C doc
-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
+make -C doc
+make install-strip DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlint $i ).gz $i.gz ; rm $i ; done
@@ -94,10 +93,14 @@ cat $CWD/prelink.conf > $PKG/etc/prelink.conf.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/*.pdf \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
+cp doc/prelink.pdf $PKG/usr/doc/$PRGNAM-$VERSION
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/prelink.cron > $PKG/usr/doc/$PRGNAM-$VERSION/prelink.cron
+cat $CWD/prelink-all > $PKG/usr/doc/$PRGNAM-$VERSION/prelink-all
+cat $CWD/prelink-undo > $PKG/usr/doc/$PRGNAM-$VERSION/prelink-undo
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc