Created script for p7zip-4.65

Script will : download+extract archive, build&&install || echo failed
This commit is contained in:
Matt Madia
2009-04-07 04:35:09 +00:00
parent ece8f9d692
commit 2eaf78bea8

26
app-arch/p7zip/p7zip-4.65.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
PACKAGE="app-arch/p7zip"
VERSION="4.65"
HOMEPAGE="http://p7zip.sourceforge.net/"
URL="http://voxel.dl.sourceforge.net/sourceforge/p7zip/"
FILE="p7zip_4.65_src_all.tar.bz2"
PREFIX=/boot/common
HAIKUPORTS="http://ports.haiku-files.org/wiki"
CWD=`pwd`
if [ ! -d ${PACKAGE}/${VERSION} ] ; then
mkdir -p ${PACKAGE}/${VERSION}
fi
if [ ! -e ${FILE} ] ; then
wget ${URL}${FILE}
fi
cd ${PACKAGE}/${VERSION}
tar -jxvf ${CWD}/${FILE}
cd p7zip_4.65
cp makefile.beos makefile.machine
make && make install DEST_HOME=${PREFIX} && echo " Installation complete." || echo " Installation FAILED !"
echo " For more information, see ${HAIKUPORTS}/${PACKAGE}"
echo