summaryrefslogtreecommitdiffstats
path: root/src/opkbuild
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-27 05:06:51 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-27 05:06:51 (EST)
commit45adc0935c3d54c39356e6d1d56a09ce509effb4 (patch)
tree90b53ac256748fd523d39b90bf2d78c7ccb9b0ef /src/opkbuild
parente882b8526fe3957d47264a4c42c62e754d575cfb (diff)
Write oh-checkbuilddeps.
Diffstat (limited to 'src/opkbuild')
-rw-r--r--src/opkbuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/opkbuild b/src/opkbuild
index 03389f8..10d5c6e 100644
--- a/src/opkbuild
+++ b/src/opkbuild
@@ -82,10 +82,15 @@ mkdir tmp
cd tmp
# Get source package name and version.
-printf 'opkbuild: Reading source package control fields...\n\n'
+printf 'opkbuild: Reading source package control fields...\n'
srcpkg=$(oh_get_field Source)
version=$(oh_get_field Version)
+# Check build dependencies.
+oh-checkbuilddeps || error "${srcpkg}-src"
+
+printf '\n'
+
# Build *-src package.
printf 'opkbuild: Attempting to build package "%s"...\n' "${srcpkg}-src"
printf 'opkbuild: Installing files for package "%s"...\n' "${srcpkg}-src"