|
lalbornoz |
340f4c |
if is_build_script_done finished; then
|
|
lalbornoz |
340f4c |
exit 212;
|
|
lalbornoz |
340f4c |
else
|
|
lalbornoz |
340f4c |
fetch_git perk "${GITROOT}/perk";
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done configured1; then
|
|
lalbornoz |
340f4c |
rm_if_exists -m -c perk-build;
|
|
lalbornoz |
340f4c |
../perk/configure;
|
|
lalbornoz |
340f4c |
set_build_script_done configured1 -built1;
|
|
lalbornoz |
340f4c |
else
|
|
lalbornoz |
340f4c |
cd perk-build;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done built1; then
|
|
lalbornoz |
340f4c |
make;
|
|
lalbornoz |
340f4c |
set_build_script_done built1 -installed1;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done installed1; then
|
|
lalbornoz |
340f4c |
make DESTDIR="${PREFIX}" install;
|
|
lalbornoz |
340f4c |
set_build_script_done installed1 -configured2;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done configured2; then
|
|
lalbornoz |
340f4c |
rm_if_exists -m "../perk-build-${TARGET}";
|
|
lalbornoz |
340f4c |
cd "../perk-build-${TARGET}";
|
|
lalbornoz |
340f4c |
../perk/configure --target="${TARGET}";
|
|
lalbornoz |
340f4c |
set_build_script_done configured2 -built2;
|
|
lalbornoz |
340f4c |
else
|
|
lalbornoz |
340f4c |
cd "../perk-build-${TARGET}";
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done built2; then
|
|
lalbornoz |
340f4c |
make;
|
|
lalbornoz |
340f4c |
set_build_script_done built2 -installed2;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
if ! is_build_script_done installed2; then
|
|
lalbornoz |
340f4c |
make DESTDIR="${PREFIX_NATIVE}" install;
|
|
lalbornoz |
340f4c |
set_build_script_done installed2 finished;
|
|
lalbornoz |
340f4c |
fi;
|
|
lalbornoz |
340f4c |
|
|
lalbornoz |
340f4c |
# vim:filetype=sh
|