2 version
=${pkg_name##*-}
7 pkg_dir
=$pkgs_dir_root/$src_name
9 mkdir
-p $pkgs_dir_root
10 cp -Hr $src_dir_root/$src_name $pkgs_dir_root
14 /nyan/git/current/bin:\
15 /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\
18 target_gnu_triple
=$
(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)")
19 target_gnu_triple
=${target_gnu_triple%-gcc}
23 if test x
$git_commit != x
; then
25 git checkout
$git_commit
28 mkdir
-p /nyan
/$src_name/$slot/bin
29 ln -sTf $slot /nyan
/$src_name/current
31 $target_gnu_triple-gcc \
32 -isystem /nyan
/glibc
/current
/include \
33 -isystem /nyan
/linux-headers
/current
/include \
34 -B /nyan
/glibc
/current
/lib \
37 -o /nyan
/$src_name/current
/bin
/$src_name
39 export PATH
=$PATH_SAVED
41 unset target_gnu_triple
42 rm -Rf $build_dir $pkg_dir