mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
34 lines
827 B
Bash
Executable File
34 lines
827 B
Bash
Executable File
#!/bin/sh
|
|
|
|
HOMEPAGE="http://www.bzip.org/"
|
|
PACKAGE="app-arch/bzip2/"
|
|
VERSION="1.0.5"
|
|
URL="http://www.bzip.org/1.0.5/"
|
|
FILE="bzip2-1.0.5.tar.gz"
|
|
|
|
# ------- This should not be edited -------
|
|
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}
|
|
if [ ${FILE:(-7)} = "tar.bz2" ] ; then
|
|
tar -jxvf ${CWD}${FILE}
|
|
elif [ ${FILE:(-7)} = ".tar.gz" ] ; then
|
|
tar xvf ${CWD}${FILE}
|
|
fi
|
|
# ------- Begin Instructions -------
|
|
cd bzip2-1.0.5
|
|
make PREFIX=${PFX} && make install PREFIX=${PFX} && echo && echo " Installation complete." || echo " Installation FAILED !"
|
|
|
|
|
|
echo " For more information, see:"
|
|
echo " ${HAIKUPORTS}${PACKAGE}"
|
|
echo " ${HOMEPAGE}"
|
|
echo
|