libXshmfence:update and moved to /usr/lib
[nyanlinux.git] / builders / libX11-1.8.7 / builder.sh
blobc1c801ecc24d2dcd02aef89c87fce4449b95e24c
1 src_name=libX11
2 version=${pkg_name##*-}
3 slot=$version
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
8 rm -Rf $pkg_dir
9 mkdir -p $pkgs_dir_root
10 cp -f $src_dir_root/$archive_name $pkgs_dir_root
11 cd $pkgs_dir_root
12 tar xf $archive_name
14 # install our build system
15 cp -r $nyan_root/builders/$pkg_name/contrib $pkg_dir
17 build_dir=$builds_dir_root/$pkg_name
18 rm -Rf $build_dir
19 mkdir -p $build_dir
20 cd $build_dir
22 cat >$build_dir/local_conf.sh <<EOF
23 version=$version
24 prefix=/usr
25 pkgconf_inc_dir=/nyan/$src_name/$slot/include
26 pkgconf_lib_dir=/nyan/$src_name/$slot/lib
27 EOF
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
38 # include files
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
44 mkdir -p /usr/lib
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