gfx stack update (still holding the breaking llvm)
[nyanlinux.git] / builders / nyangpt-93ff96f81c21fa5231aaec14fbd5cbc592eb04dc / builder.sh
blob8a6867159bdd7346d988b200111fb62ce5c413ca
1 src_name=nyangpt
2 version=${pkg_name##*-}
3 git_commit=$version
4 slot=$version
5 url0=
7 pkg_dir=$pkgs_dir_root/$src_name
8 rm -Rf $pkg_dir
9 mkdir -p $pkgs_dir_root
10 cp -Hr $src_dir_root/$src_name $pkgs_dir_root
12 PATH_SAVED=$PATH
13 export PATH="\
14 /nyan/git/current/bin:\
15 /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\
16 $PATH\
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}
21 cd $pkg_dir
23 if test x$git_commit != x; then
24 git reset --hard
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 \
35 -Wl,-s \
36 $pkg_dir/nyangpt.c \
37 -o /nyan/$src_name/current/bin/$src_name
39 export PATH=$PATH_SAVED
40 unset PATH_SAVED
41 unset target_gnu_triple
42 rm -Rf $build_dir $pkg_dir