diff options
Diffstat (limited to 'system/p7zip')
-rw-r--r-- | system/p7zip/README | 2 | ||||
-rw-r--r-- | system/p7zip/makefile.slackware-i486 | 23 | ||||
-rw-r--r-- | system/p7zip/makefile.slackware-i686 | 23 | ||||
-rw-r--r-- | system/p7zip/p7zip.SlackBuild | 79 | ||||
-rw-r--r-- | system/p7zip/p7zip.info | 8 | ||||
-rw-r--r-- | system/p7zip/slack-desc | 12 |
6 files changed, 147 insertions, 0 deletions
diff --git a/system/p7zip/README b/system/p7zip/README new file mode 100644 index 0000000000000..10ccbe1526651 --- /dev/null +++ b/system/p7zip/README @@ -0,0 +1,2 @@ +7-Zip is a well-known file compression utility for windows. +p7zip is a ported version for linux with nearly the same capabilities. diff --git a/system/p7zip/makefile.slackware-i486 b/system/p7zip/makefile.slackware-i486 new file mode 100644 index 0000000000000..70d7455580aa7 --- /dev/null +++ b/system/p7zip/makefile.slackware-i486 @@ -0,0 +1,23 @@ +# +# makefile for Linux (x86, PPC, alpha ...) +# + +OPTFLAGS=-O2 + +SLKCFLAGS=-march=i486 -mtune=i686 + +ALLFLAGS=${OPTFLAGS} ${SLKCFLAGS} -s \ + -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ + -DNDEBUG -D_REENTRANT -DENV_UNIX \ + $(LOCAL_FLAGS) + +CXX=g++ $(ALLFLAGS) +CC=gcc $(ALLFLAGS) +CC_SHARED=-fPIC +LINK_SHARED=-fPIC -shared + +LOCAL_LIBS=-lpthread +LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl + +OBJ_CRC32=$(OBJ_CRC32_C) + diff --git a/system/p7zip/makefile.slackware-i686 b/system/p7zip/makefile.slackware-i686 new file mode 100644 index 0000000000000..f01e696419f2c --- /dev/null +++ b/system/p7zip/makefile.slackware-i686 @@ -0,0 +1,23 @@ +# +# makefile for Linux (x86, PPC, alpha ...) +# + +OPTFLAGS=-O2 + +SLKCFLAGS=-march=i686 -mtune=i686 + +ALLFLAGS=${OPTFLAGS} ${SLKCFLAGS} -s \ + -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ + -DNDEBUG -D_REENTRANT -DENV_UNIX \ + $(LOCAL_FLAGS) + +CXX=g++ $(ALLFLAGS) +CC=gcc $(ALLFLAGS) +CC_SHARED=-fPIC +LINK_SHARED=-fPIC -shared + +LOCAL_LIBS=-lpthread +LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl + +OBJ_CRC32=$(OBJ_CRC32_C) + diff --git a/system/p7zip/p7zip.SlackBuild b/system/p7zip/p7zip.SlackBuild new file mode 100644 index 0000000000000..ef0aedd8b5926 --- /dev/null +++ b/system/p7zip/p7zip.SlackBuild @@ -0,0 +1,79 @@ +#!/bin/sh + +# Slackware build script for p7zip + +# Copyright 2007 Heinz Wiesinger <hmwiesinger@gmx.at> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=p7zip +VERSION=4.57 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf ${PRGNAM}_${VERSION} +tar xvf $CWD/${PRGNAM}_${VERSION}_src_all.tar.bz2 +cd ${PRGNAM}_${VERSION} +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# p7zip does not take CXXFLAGS nor CFLAGS, so we have to hardcode +# them into special makefiles +if [ "$ARCH" = "i486" ]; then + cp -f $CWD/makefile.slackware-i486 ./makefile.machine +elif [ "$ARCH" = "i686" ]; then + cp -f $CWD/makefile.slackware-i686 ./makefile.machine +fi + +make all2 DEST_HOME=/usr DEST_DIR=$PKG +make install DEST_HOME=/usr DEST_DIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +( 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 +) + +mkdir -p $PKG/usr/doc/ +mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share +cp -a TODO $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +( cd $PKG/usr/doc ; ln -s $PRGNAM-$VERSION $PRGNAM ) + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/system/p7zip/p7zip.info b/system/p7zip/p7zip.info new file mode 100644 index 0000000000000..89be6dce03ad3 --- /dev/null +++ b/system/p7zip/p7zip.info @@ -0,0 +1,8 @@ +PRGNAM="p7zip" +VERSION="4.57" +HOMEPAGE="http://p7zip.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/p7zip/p7zip_4.57_src_all.tar.bz2" +MD5SUM="773f78d8b297eb858626667d4dfa93c7" +MAINTAINER="ppr:kut" +EMAIL="HMWiesinger@gmx.at" +APPROVED="rworkman" diff --git a/system/p7zip/slack-desc b/system/p7zip/slack-desc new file mode 100644 index 0000000000000..6671975e4456a --- /dev/null +++ b/system/p7zip/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler------------------------------------------------------| +p7zip: p7zip (File Compression/Decompression Utility) +p7zip: +p7zip: 7-Zip is a well-known file compression utility for windows. +p7zip: p7zip is a ported version for linux with nearly the same capabilities. +p7zip: +p7zip: Homepage: http://p7zip.sourceforge.net/ +p7zip: +p7zip: +p7zip: +p7zip: +p7zip: |