- apply_patches ${PACKAGE} /usr/src
- fi
-
- # Install headers
- cd /usr/src/${PACKAGE}
- make mrproper
- make headers_check
-
- # Remove any previous headers install
- rm -rf dest
- make INSTALL_HDR_PATH=dest headers_install
- cp -rv dest/include/* /usr/include
- find /usr/include -name .install -or -name ..install.cmd | xargs rm -fv
- rm -rf dest
+ ${HVMAKE} mrproper
+ ${HVMAKE} INSTALL_HDR_PATH=dest headers_install
+ cp -rv dest/include/* ${DESTDIR}
+ find ${DESTDIR} -name .install -or -name ..install.cmd | xargs rm -fv