2 version
=${pkg_name##*-}
4 archive_name
=$src_name-$version.
tar.xz
5 url0
=http
://www.nasm.us
/pub
/$src_name/releasebuilds
/$archive_name/$archive_name
7 pkg_dir
=$pkgs_dir_root/$src_name-$version
9 mkdir
-p $pkgs_dir_root
10 cp -f $src_dir_root/$archive_name $pkgs_dir_root
14 # Must be build into the src directory.
19 /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\
20 /nyan/make/current/bin:\
23 target_gnu_triple
=$
(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)")
24 target_gnu_triple
=${target_gnu_triple%-gcc}
26 export "CC=$target_gnu_triple-gcc \
27 -isystem /nyan/glibc/current/include \
28 -isystem /nyan/linux-headers/current/include \
29 -B/nyan/glibc/current/lib \
30 -L/nyan/glibc/current/lib \
31 -Wl,-rpath-link,/nyan/glibc/current/lib \
34 export 'CFLAGS=-O2 -pipe -fPIC'
35 export AR
=$target_gnu_triple-ar
37 --prefix=/nyan
/$src_name/$slot
45 rm -Rf /nyan
/$src_name/$slot/share
47 export PATH
=$PATH_SAVED
49 unset target_gnu_triple
50 rm -f $pkgs_dir_root/$archive_name