mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
Script will : download+extract archive, build&&install || echo failed First of many to come.
26 lines
646 B
Bash
Executable File
26 lines
646 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PACKAGE="app-admin/pwgen"
|
|
VERSION="2.06"
|
|
HOMEPAGE="http://sourceforge.net/projects/pwgen/"
|
|
URL="http://voxel.dl.sourceforge.net/sourceforge/pwgen/"
|
|
FILE="pwgen-2.06.tar.gz"
|
|
|
|
PREFIX=--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 xvf ${CWD}/${FILE}
|
|
cd pwgen-2.06
|
|
configure ${PREFIX}
|
|
`make && make install && echo && echo " Installation complete."` || echo " Installation FAILED !"
|
|
|
|
echo " For more information, see ${HAIKUPORTS}/${PACKAGE}"
|
|
echo |