2 git_commit
=041912a791e8c2f4d5d2415b16210d29d7e701c5
3 git_url0
=git
://git.suckless.org
/st
5 src_dir
=$src_dir_root/$src_name
6 pkg_dir
=$pkgs_dir_root/$src_name
8 mkdir
-p $pkgs_dir_root
9 cp -r $src_dir $pkg_dir
13 git checkout
--force $git_commit
17 export PATH
=$cross_toolchain_dir_root/bin
:$PATH
19 # copy our source configuration and build configuration files
20 cp -f $nyan_root/builders
/$pkg_name/config-target.h .
/config.h
21 cp -f $nyan_root/builders
/$pkg_name/config-target.mk .
/config.mk
23 export "PKG_CONFIG_LIBDIR=\
24 $target_sysroot/nyan/libXau/0/lib/pkgconfig:\
25 $target_sysroot/nyan/libpthread-stubs/0/lib/pkgconfig:\
26 $target_sysroot/nyan/libxcb/0/lib/pkgconfig:\
27 $target_sysroot/nyan/libX11/0/lib/pkgconfig:\
28 $target_sysroot/nyan/libXrender/0/lib/pkgconfig:\
29 $target_sysroot/nyan/libXft/0/lib/pkgconfig:\
30 $target_sysroot/nyan/xorgproto/0/share/pkgconfig:\
31 $target_sysroot/nyan/libpng/0/lib/pkgconfig:\
32 $target_sysroot/nyan/zlib/0/lib/pkgconfig:\
33 $target_sysroot/nyan/freetype/0/lib/pkgconfig:\
34 $target_sysroot/nyan/nyanuuid/0/lib/pkgconfig:\
35 $target_sysroot/nyan/expat/0/lib/pkgconfig:\
36 $target_sysroot/nyan/fontconfig/0/lib/pkgconfig"
37 export PKG_CONFIG_SYSROOT_DIR
=$target_sysroot
41 PREFIX
=$target_sysroot/nyan
/st
/0 \
42 'CFLAGS=-O2 -pipe -fPIC' \
43 "CC=$target_gnu_triple-gcc -static-libgcc -B$target_sysroot/nyan/glibc/current/lib -L$target_sysroot/nyan/glibc/current/lib \
45 $target_sysroot/nyan/libXau/0/lib:\
46 $target_sysroot/nyan/libxcb/0/lib:\
47 $target_sysroot/nyan/libpng/0/lib:\
48 $target_sysroot/nyan/libXrender/0/lib:\
49 $target_sysroot/nyan/freetype/0/lib:\
50 $target_sysroot/nyan/libXt/0/lib:\
51 $target_sysroot/nyan/libX11/0/lib:\
52 $target_sysroot/nyan/glibc/current/lib"
54 mkdir
-p $target_sysroot/nyan
/st
/0/bin
55 cp -f .
/st
$target_sysroot/nyan
/st
/0/bin
58 $target_gnu_triple-strip -s $target_sysroot/nyan
/st
/0/bin
/st
60 rm -Rf $build_dir $pkg_dir