-Now using a single file for all custom definitions and functions for each package.
[hvlinux.git] / stage1 / pkg / bzip2
diff --git a/stage1/pkg/bzip2 b/stage1/pkg/bzip2
new file mode 100644 (file)
index 0000000..bedd643
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# This package doesn't have a configure script...
+hvconfigure()
+{
+    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
+}