# Default build function
hvbuild()
{
- if [ "x${IPKG_MODE}" = "xacnb" -o "x${IPKG_MODE}" = "xpm" ]; then
+ if [ "x${IPKG_MODE}" = "xacnb" -o \
+ "x${IPKG_MODE}" = "xnoac" -o \
+ "x${IPKG_MODE}" = "xpm" ]; then
# Broken autoconf package that must build in source dir, or Perl module.
cd ${LFS_TMP}/${PACKAGE}
fi
}
# This is the main function doing all the work
+# Arg #1: alternate script name (optional)
ipkg_script()
{
- ipkg_decompress_package
+ if [ $# -eq 1 ]; then
+ # Use supplied script name
+ PACKAGE_DEF=${SCRDIR}/pkg/${1}
+ else
+ # Use default script name
+ PACKAGE_DEF=${SCRDIR}/pkg/$(get_pkg_name ${PACKAGE})
- PACKAGE_DEF=${SCRDIR}/pkg/$(get_pkg_name ${PACKAGE})
+ fi
+
+ ipkg_decompress_package
if [ -f ${PACKAGE_DEF} ]; then
- echo "Load custom package functions and definitions"
+ echo "Load custom package functions and definitions from ${PACKAGE_DEF}"
source ${PACKAGE_DEF}
fi