summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorMartin Ivanov <tramni@abv.bg>2010-05-12 17:45:30 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-12 17:45:30 +0200
commita4c8676162b40aad980d36b5d11248669e43f690 (patch)
tree0b89340d6ea8796a4de024d2639c54b11bab1e36 /system
parent2a9bdfe43211885f61972db0729f7731691fd076 (diff)
downloadslackbuilds-a4c8676162b40aad980d36b5d11248669e43f690.tar.gz
system/lzma: Updated for version 4.32.7
Diffstat (limited to 'system')
-rw-r--r--system/lzma/lzma.SlackBuild55
1 files changed, 26 insertions, 29 deletions
diff --git a/system/lzma/lzma.SlackBuild b/system/lzma/lzma.SlackBuild
index 03cf955691..17834d984c 100644
--- a/system/lzma/lzma.SlackBuild
+++ b/system/lzma/lzma.SlackBuild
@@ -3,17 +3,12 @@
## Written by Martin Ivanov (tramni@abv.bg)
## Package Homepage: http://tukaani.org/lzma
-## Feel free to use, modify, redistribute this script.
-## If you make changes please modify the "Written by"
-## so that I don't recieve emails about a script I
-## did not write. Thanks.
-
-set -e
+# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=lzma
VERSION=4.32.7
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -29,12 +24,14 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -47,32 +44,32 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
-|| exit 1
+ --build=$ARCH-slackware-linux
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+make install DESTDIR=$PKG
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog COPYING* INSTALL NEWS README THANKS \
- $CWD/{$PRGNAM.SlackBuild,slack-desc} \
- $PKG/usr/doc/$PRGNAM-$VERSION
-find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -d : -f 1 | \
+ xargs -r strip --strip-unneeded 2>/dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -d : -f 1 | \
+ xargs -r strip --strip-unneeded 2>/dev/null || true
+)
-# Fix manpage symlinks:
( cd $PKG/usr/man
- for i in `find . -type l` ; do
- ln -s $( readlink $i ).gz $i.gz
- rm $i
- done
- gzip -9 */*.?
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
-cd $PKG
-find . | xargs file | grep "executable" | grep ELF | cut -d : -f 1 | xargs -r strip --strip-unneeded
-find . | xargs file | grep "shared object" | grep ELF | cut -d : -f 1 | xargs -r strip --strip-unneeded
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS ChangeLog COPYING* INSTALL NEWS README THANKS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
-
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz