2 git_commit
=bd94507c9f5e3e07a4ddaf9a2d862e04cac3885f
3 git_url0
=git
://git.launchpad.net
/$src_name
5 src_dir
=$src_dir_root/$src_name
6 pkg_dir
=$pkgs_dir_root/$pkg_name
8 mkdir
-p $pkgs_dir_root
9 cp -r $src_dir $pkg_dir
13 git checkout
--force $git_commit
16 build_dir
=$builds_dir_root/$pkg_name
21 export "PKG_CONFIG_LIBDIR=\
22 /nyan/nyanuuid/current/lib/pkgconfig:\
23 /nyan/nyankmod/current/lib/pkgconfig:\
24 /nyan/nyanblkid/current/lib/pkgconfig"
27 --prefix=/nyan
/mudev
/1 \
28 --usb-database=/share
/hwdata
/usb.ids \
29 --pci-database=/share
/hwdata
/pci.ids \
31 "--dbin-cc=gcc -O2 -pipe -fPIC -c" \
32 "--dbin-ccld=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" \
33 "--dslibudev-cc=gcc -O2 -pipe -fPIC -c" \
34 "--dslibudev-ccld=gcc -shared -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc -Wl,-soname,libudev.so.0"
36 rm -Rf /nyan
/$src_name/1
37 cp -r $build_dir/fake_root
/* /
40 find /nyan
/$src_name/1 -type f |
while read f
; do if file $f |
egrep 'ELF.+(shared|executable)' >/dev
/null
; then strip
-s $f; fi; done
42 # add/update the hardware data from the src dir
43 mkdir
-p /share
/hwdata
44 cp $src_dir_root/pci.ids
/share
/hwdata
45 cp $src_dir_root/usb.ids
/share
/hwdata
47 rm -Rf $build_dir $pkg_dir