4 git_commit
=${pkg_name##*-}
6 mkdir
/nyan
/$src_name/$slot
10 pkg_dir
=$pkgs_dir_root/$pkg_name
12 src_dir
=$src_dir_root/$src_name
13 cp -r $src_dir $pkg_dir
19 /opt/toolchains/x64/elf/binutils-gcc/current/bin:\
23 if test x
$git_commit != x
; then
24 git checkout
--force $git_commit
28 build_dir
=$builds_dir_root/$pkg_name
33 # We still configure the package in /nyan/mudev/$slot and this "make" script is way too complex.
34 # It needs pkgconf removal too.
35 # usb and pci database are currently shared with libpciaccess still required by Xorg.
37 --prefix=/nyan
/$src_name/$slot \
38 --usb-database=/share
/hwdata
/usb.ids \
39 --pci-database=/share
/hwdata
/pci.ids \
41 "--bin-cc=gcc -std=c99 -O2 -pipe -fPIC -c -isystem /nyan/glibc/current/include -isystem /nyan/linux-headers/current/include -static-libgcc" \
42 "--bin-ccld=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,--as-needed -Wl,-s -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" \
43 "--libudev-cc=gcc -std=c99 -O2 -pipe -fPIC -c -isystem /nyan/glibc/current/include -isystem /nyan/linux-headers/current/include -static-libgcc" \
44 "--libudev-ccld=gcc -shared -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-s -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc -Wl,--as-needed -Wl,-soname,libudev.so.0"
46 rm -Rf /nyan
/$src_name/$slot
47 cp -r $build_dir/fake_root
/* /
49 mkdir
/nyan
/$src_name/$slot/hwdata
50 cp -f $src_dir_root/pci.ids
/nyan
/$src_name/$slot/hwdata
/pci.ids
51 cp -f $src_dir_root/usb.ids
/nyan
/$src_name/$slot/hwdata
/usb.ids
53 export PATH
=$PATH_SAVED
55 rm -Rf $build_dir $pkg_dir