Update for new BUILD_DIR and SRC_DIR variables
[hvlinux.git] / stage3 / pkg / docbook-utils
index 46636ec..158bcfb 100644 (file)
@@ -1,25 +1,13 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-sed -i 's:/html::' doc/HTML/Makefile.in
-./configure \
-    --prefix=/usr
-make
-make install
-
-for doctype in html ps dvi man pdf rtf tex texi txt; do
-    ln -sf docbook2$doctype /usr/bin/db2$doctype
-done
-
-exit $?
+#!/bin/bash
+
+hvconfig_pre()
+{
+    sed -i 's:/html::' ${SRC_DIR}/doc/HTML/Makefile.in
+}
+
+hvbuild_post()
+{
+    for doctype in html ps dvi man pdf rtf tex texi txt; do
+        ln -sf docbook2$doctype /usr/bin/db2$doctype
+    done
+}