File baselibs-deb.conf of Package findutils
arch i386 targets armel:x86lib
prefix /lib-x86
package findutils
targettype x86lib requires patchelf-x86lib
targettype x86lib requires libc6-x86lib
targettype x86lib post replace() {
targettype x86lib post mv $prog ${prog}-orig-x86lib ; ln -s <prefix>${prog} ${prog}
targettype x86lib post }
targettype x86lib post for prog in /usr/bin/xargs /usr/bin/find
targettype x86lib post do
targettype x86lib post echo patchelf and replace $prog
targettype x86lib post <prefix>/usr/bin/patchelf --set-rpath <prefix>/lib:<prefix>/usr/lib <prefix>$prog
targettype x86lib post replace $prog
targettype x86lib post done
targettype x86lib preun #!/bin/sh
targettype x86lib preun replace() {
targettype x86lib preun rm -f ${prog}; mv ${prog}-orig-x86lib $prog
targettype x86lib preun }
targettype x86lib preun for prog in /usr/bin/xargs /usr/bin/find
targettype x86lib preun do
targettype x86lib preun replace $prog
targettype x86lib preun done