summaryrefslogtreecommitdiffstats
path: root/src/opkbuild
diff options
context:
space:
mode:
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"