diff --git a/xbps-src/xbps-src.sh.in b/xbps-src/xbps-src.sh.in index 91e66c2a960..41e5513c083 100644 --- a/xbps-src/xbps-src.sh.in +++ b/xbps-src/xbps-src.sh.in @@ -219,7 +219,9 @@ build-pkg) for f in $($XBPS_BIN_CMD list|awk '{print $1}'); do pkg=$(xbps-pkgdb getpkgname $f) setup_tmpl ${pkg} - xbps_make_binpkg ${pkg} + if [ "$pkg" = "$sourcepkg" ]; then + xbps_make_binpkg ${pkg} + fi reset_tmpl_vars done else