2 version
=${pkg_name##*-}
4 archive_name
=$src_name-$version.
tar.xz
5 url0
=http
://www.x.org
/releases
/individual
/app
/$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 build_dir
=$builds_dir_root/$pkg_name
19 # XXX: for all X11 based header we do not define MALLOC_0_RETURNS_NULL for glibc allocator
21 mkdir
-p $build_dir/bin
22 cat >$build_dir/bin
/cc
<<EOF
25 /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc \
27 -isystem /nyan/glibc/current/include \
28 -isystem /nyan/linux-headers/current/include \
30 -I/nyan/libxkbfile/current/include \
31 -I/nyan/libX11/current/include \
32 -I/nyan/xorgproto/current/include \
34 -O2 -pipe -fPIC -static-libgcc -ftls-model=global-dynamic -fpic \
36 -B/nyan/glibc/current/lib \
38 -L/nyan/libxkbfile/current/lib \
39 -L/nyan/libX11/current/lib \
40 -L/nyan/glibc/current/lib \
44 chmod +x
$build_dir/bin
/cc
45 export PATH_SAVED
=$PATH
51 #/nyan/bison/current/bin/bison --defines=xkbparse.h -o $build_dir/xkbparse.c \
61 $pkg_dir/indicators.c \
67 $pkg_dir/parseutils.c \
75 #---------------------------------------------------------------------------------------------------
76 # TODO: we are still using the compiler driver, bad
77 for f
in $xkbcomp_src_files
83 cc
-c $f -o $build_dir/$o \
84 -DDFLT_XKB_CONFIG_ROOT='"/usr/share/X11/xkb"' \
87 -DPACKAGE_VERSION=\"$version\" &
89 #---------------------------------------------------------------------------------------------------
91 #---------------------------------------------------------------------------------------------------
92 # TODO: we are still using the compiler driver, bad
93 printf "CCLD xkbcomp\n"
94 cc
-o $build_dir/xkbcomp \
99 #---------------------------------------------------------------------------------------------------
100 # XXX: The xserver should have been configured to find xkbcomp properly.
101 mkdir
-p /nyan
/$src_name/$slot/bin
102 cp -f $build_dir/xkbcomp
/nyan
/$src_name/$slot/bin
104 export PATH
=$PATH_SAVED
106 rm -f $pkgs_dir_root/$archive_name
107 rm -Rf $build_dir $pkg_dir