freetype:update and moved to /usr/lib
[nyanlinux.git] / builders / mudev-1 / builder.sh
blob2c31bfe9003f06b5efe1c193fce953f45b1ebb1f
1 src_name=mudev
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
7 rm -Rf $pkg_dir
8 mkdir -p $pkgs_dir_root
9 cp -r $src_dir $pkg_dir
11 cd $pkg_dir
13 git checkout --force $git_commit
14 git reset --hard
16 build_dir=$builds_dir_root/$pkg_name
17 rm -Rf $build_dir
18 mkdir -p $build_dir
19 cd $build_dir
21 export "PKG_CONFIG_LIBDIR=\
22 /nyan/nyanuuid/current/lib/pkgconfig:\
23 /nyan/nyankmod/current/lib/pkgconfig:\
24 /nyan/nyanblkid/current/lib/pkgconfig"
26 $pkg_dir/make \
27 --prefix=/nyan/mudev/1 \
28 --usb-database=/share/hwdata/usb.ids \
29 --pci-database=/share/hwdata/pci.ids \
30 --disable-static \
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/* /
39 # cleanup and tidying
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