aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-02-20 12:51:37 -0800
committerMark Ferrell <major@homeonderanged.org>2014-02-20 12:51:37 -0800
commit032185875ed298835176058c66d37cd7f81f4d03 (patch)
tree026a0020bcf1b24d35ee03a272a81a3170c7ce0f
parentd6422952ffbdfa22ecb4c856e366415efa79212f (diff)
Allow packages to call default prep/compile
* renamed pkg_prep() and pkg_compile() to build_prep() and build_compile(). The new pkg_*() routines simply call these builtins. This allows packages to utilize the defaults w/out reinventing them.
-rwxr-xr-xbuilder/build-package11
1 files changed, 4 insertions, 7 deletions
diff --git a/builder/build-package b/builder/build-package
index b98b3e9..1d02691 100755
--- a/builder/build-package
+++ b/builder/build-package
@@ -22,14 +22,11 @@ exit_cleanup()
}
trap exit_cleanup EXIT
-pkg_prep()
-{
- return
-}
+build_prep() { return; }
+pkg_prep() { build_prep; }
-pkg_compile()
+build_compile()
{
- # FIXME these defaults need moved elsewhere
if [ -f "configure" ]; then
./configure --host="${CHOST}" \
--prefix="/usr" --mandir=/usr/share/man \
@@ -38,10 +35,10 @@ pkg_compile()
${CONFIG_OPTS}
fi
- # FIXME we need a bunch of make options in here
make ${MAKE_OPTS}
make DESTDIR="${D}" install
}
+pkg_compile() { build_compile; }
import "${1}"