Page 1 of 1

PeaZip 4.2 (x86)

Posted: 02 Feb 2011, 17:07
by Hamza
Script for PeaZip 4.2!

Code: Select all

#!/bin/bash

# SRC = Source Link
# TMP = /tmp/$NAME folder
# TMP_SRC = /tmp/$NAME-src


SRC=http://repository.slacky.eu/slackware-13.37/utilities/peazip/4.2/peazip-4.2-i686-1sl.txz
NAME='PeaZip'
F_NAME=peazip
TMP=/tmp/$F_NAME
TMP_SRC=/tmp/$F_NAME-src
F_1=$TMP_SRC/peazip-4.2-i686-1sl.txz
CPU=`uname -m`
CWD=`pwd`
F_LAST=$CWD/$F_NAME-$CPU.xzm

clear
echo "===============> PORTEUS <==============="
echo 
echo "Welcome to $NAME Installer for Porteus"
echo "Press any key to start the installation"
read junk

clear

echo "Downloading...."
if [ -d $TMP ]; then rm -Rf $TMP
else 
   mkdir $TMP
fi
if [ -d $TMP_SRC ]; then rm -Rf $TMP_SRC
else 
   mkdir $TMP_SRC
fi

cd $TMP_SRC
wget $SRC

clear
if [ -e $F_1 ]; then
echo "Building the module..."
txz2xzm $F_1 $F_LAST
else
echo "Check your internet connection!"
echo "Build failed!"
fi

# Check if the file is compiled by mksquashfs
clear
if [ -e $F_LAST ]; then
echo "===============> PORTEUS <==============="
echo "Your module $NAME is ready !"
echo "Thanks to the Porteus Community !"
echo "-----------------------------------------"
echo "Your module is saved in $CWD folder"
echo "-----------------------------------------"
echo "Cleaning the system..."
else
   clear
   echo "Build failed!"
   echo "Please report this bug to the Porteus Forum!"
   echo "Cleaning the system"
   rm -Rf $TMP
   rm -Rf $TMP_SRC
fi
if [ -d $TMP ]; then rm -Rf $TMP
fi
if [ -d $TMP_SRC ]; then rm -Rf $TMP_SRC
fi
Enjoy !

Re: PeaZip 4.2 (x86)

Posted: 23 Nov 2011, 11:20
by Hamza
Updated to 4.2.