mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
Created script for p7zip-4.65
Script will : download+extract archive, build&&install || echo failed
This commit is contained in:
26
app-arch/p7zip/p7zip-4.65.sh
Executable file
26
app-arch/p7zip/p7zip-4.65.sh
Executable 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
|
||||
Reference in New Issue
Block a user