summaryrefslogtreecommitdiffhomepage
path: root/100.perk.build
blob: 8ad9c1016c36c08ba9a2c99913bcb5a5ddd01ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
if is_build_script_done finished; then
        exit 212;
else
	fetch_git perk "${GITROOT}/perk";
fi;
if ! is_build_script_done configured1; then
	rm_if_exists -m -c perk-build;
	../perk/configure;
	set_build_script_done configured1 -built1;
else
	cd perk-build;
fi;
if ! is_build_script_done built1; then
	make;
	set_build_script_done built1 -installed1;
fi;
if ! is_build_script_done installed1; then
	make DESTDIR="${PREFIX}" install;
	set_build_script_done installed1 -configured2;
fi;
if ! is_build_script_done configured2; then
	rm_if_exists -m "../perk-build-${TARGET}";
	cd "../perk-build-${TARGET}";
	../perk/configure --target="${TARGET}";
	set_build_script_done configured2 -built2;
else
	cd "../perk-build-${TARGET}";
fi;
if ! is_build_script_done built2; then
	make;
	set_build_script_done built2 -installed2;
fi;
if ! is_build_script_done installed2; then
	make DESTDIR="${PREFIX_NATIVE}" install;
	set_build_script_done installed2 finished;
fi;

# vim:filetype=sh