2 version
=${pkg_name##*-}
4 archive_name
=$src_name-$version.
tar.xz
5 url0
=http
://xorg.freedesktop.org
/releases
/individual
/lib
/$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 # install our build system
15 cp -r $nyan_root/builders
/$pkg_name/contrib
$pkg_dir
17 build_dir
=$builds_dir_root/$pkg_name
22 cat >$build_dir/local_conf.sh
<<EOF
25 pkgconf_inc_dir=/nyan/$src_name/$slot/include
26 pkgconf_lib_dir=/nyan/$src_name/$slot/lib
29 $pkg_dir/contrib
/binutils-gcc-glibc.sh
31 # we did override the pkg-config file to put dev stuff here
32 mkdir
-p /nyan
/$src_name/$slot/lib
/pkgconfig
33 cp -f $build_dir/fakeroot
/usr
/lib
/libX11-xcb.so
.1.0.0 $build_dir/fakeroot
/usr
/lib
/libX11.so
.6.4.0 /nyan
/$src_name/$slot/lib
34 ln -sTf libX11-xcb.so
.1.0.0 /nyan
/$src_name/$slot/lib
/libX11-xcb.so
35 ln -sTf libX11.so
.6.4.0 /nyan
/$src_name/$slot/lib
/libX11.so
36 cp -f $build_dir/fakeroot
/usr
/lib
/pkgconfig
/x11-xcb.pc
$build_dir/fakeroot
/usr
/lib
/pkgconfig
/x11.pc
/nyan
/$src_name/$slot/lib
/pkgconfig
39 rm -Rf /nyan
/$src_name/$slot/include
40 mkdir
-p /nyan
/$src_name/$slot
41 cp -r $build_dir/fakeroot
/usr
/include
/nyan
/$src_name/$slot
43 # we go for a mono block runtime, XXX:current not slot
45 ln -sTf /nyan
/$src_name/current
/lib
/libX11-xcb.so
.1.0.0 /usr
/lib
/libX11-xcb.so
.1
46 ln -sTf /nyan
/$src_name/current
/lib
/libX11.so
.6.4.0 /usr
/lib
/libX11.so
.6
48 # xkb compose runtime data files, you can override this location with XLOCALEDIR environment variable
49 # but invasive and trash software is unable to handle another location than /usr/share
50 rm -Rf /nyan
/$src_name/$slot/share
/X11
/locale
51 mkdir
-p /nyan
/$src_name/$slot/share
/X11
52 cp -r $build_dir/fakeroot
/usr
/share
/X11
/locale
/nyan
/$src_name/$slot/share
/X11
53 mkdir
-p /usr
/share
/X11
54 # XXX:current not slot
55 ln -sTf /nyan
/$src_name/current
/share
/X11
/locale
/usr
/share
/X11
/locale
57 rm -f $pkgs_dir_root/$archive_name
58 rm -Rf $build_dir $pkg_dir