2 version_all
=${pkg_name#*-}
4 version_base
=${version_all%-*}
5 version_patch
=${version_all##*-}
6 archive_name
=$src_name-$version_base.
tar.gz
7 patch_name
=patch-
$version_all.sh.gz
8 url0
=http
://ftpmirror.gnu.org
/$src_name/$archive_name
9 url1
=ftp://ftp.invisible-island.net
/$src_name/$version_base/patch_name
11 pkg_dir
=$pkgs_dir_root/$src_name-$version_base
13 mkdir
-p $pkgs_dir_root
14 cp -f $src_dir_root/$archive_name $pkgs_dir_root
19 cp -f $src_dir_root/$patch_name .
/
21 chmod +x .
/$
(basename $patch_name .gz
)
22 .
/$
(basename $patch_name .gz
)
24 build_dir
=$builds_dir_root/$pkg_name-$version_all
31 /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\
32 /nyan/make/current/bin:\
35 target_gnu_triple
=$
(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)")
36 target_gnu_triple
=${target_gnu_triple%-gcc}
38 export PKG_CONFIG
=/nyan
/pkgconf
/current
/bin
/pkgconf
40 -isystem /nyan/glibc/current/include \
41 -isystem /nyan/linux-headers/current/include"
42 export "CPP=$target_gnu_triple-gcc -E"
43 export 'CFLAGS=-O2 -pipe -fPIC -static-libgcc'
45 -B/nyan/glibc/current/lib \
46 -L/nyan/glibc/current/lib \
47 -Wl,-rpath-link,/nyan/glibc/current/lib \
50 export CC
=$target_gnu_triple-gcc
51 export AR
=$target_gnu_triple-ar
52 export "BUILD_CPPFLAGS=$CPPFLAGS"
53 export "BUILD_CPP=$CPP"
54 export "BUILD_CFLAGS=$CFLAGS"
55 export "BUILD_LDFLAGS=$LDFLAGS"
59 --prefix=/nyan
/ncurses
/$slot \
62 --without-cxx-binding \
67 --with-pkg-config-libdir=/nyan
/ncurses
/$slot/lib
/pkgconfig \
69 --disable-mixed-case \
78 --disable-lib-suffixes \
81 --disable-root-environ \
90 --enable-opaque-curses \
91 --enable-opaque-form \
92 --enable-opaque-menu \
93 --enable-opaque-panel \
95 --enable-fvisibility \
114 export PATH
=$PATH_SAVED
116 unset target_gnu_triple
117 rm -f $pkgs_dir_root/$archive_name
118 rm -Rf $build_dir $pkg_dir