Add cross-compile ipkg mode for stage1 (DESTDIR)
[hvlinux.git] / stage1 / pkg / bzip2
index bedd643..9805b2e 100644 (file)
@@ -1,17 +1,11 @@
 #!/bin/bash
 
-# This package doesn't have a configure script...
-hvconfigure()
+hvbuild()
 {
-    cd ${LFS_TMP}/${PACKAGE}
-
     # Bzip2's default Makefile target automatically runs the testsuite as well.
     # Disable the tests since they won't work on a multi-architecture build:
     sed -e 's@^\(all:.*\) test@\1@g' -i Makefile
-}
 
-hvbuild()
-{
     ${HVMAKE} CC="${CC} ${CLFS_BUILDFLAGS}" AR="${AR}" RANLIB="${RANLIB}"
-    ${HVMAKE} PREFIX=/tools install
+    ${HVMAKE} PREFIX=${LFS}/tools install
 }