mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Created script for bzip2-1.0.5.sh
Script will : download+extract archive, build&&install || echo failed
This commit is contained in:
28
app-arch/bzip2/bzip2-1.0.5.sh
Executable file
28
app-arch/bzip2/bzip2-1.0.5.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
PACKAGE="app-arch/bzip2"
|
||||
VERSION="1.0.5"
|
||||
HOMEPAGE="http://www.bzip.org/"
|
||||
URL="http://www.bzip.org/1.0.5/"
|
||||
FILE="bzip2-1.0.5.tar.gz"
|
||||
|
||||
PFX=/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 xvf ${CWD}/${FILE}
|
||||
cd bzip2-1.0.5
|
||||
|
||||
make PREFIX=${PFX} && make install PREFIX=${PFX} && echo && echo " Installation complete." || echo " Installation FAILED !"
|
||||
|
||||
|
||||
echo " For more information, see ${HAIKUPORTS}/${PACKAGE}"
|
||||
echo
|
||||
Reference in New Issue
Block a user