Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
if ! sbuild-createchroot --arch="${host_arch}" "${release}" \
"${CHROOT_PATH}/${chroot}"; then
echo "Could not create chroot for ${release} on ${host_arch}" >&2
if ! sbuild-createchroot --arch="${host_arch}" "${release}" \
"${CHROOT_PATH}/${chroot}"; then
echo "Could not create chroot for ${release} on ${host_arch}" >&2
# Run the build process
if ! sbuild --dist="${release}" --host="${arch}" --source "sources/${package}"; then
echo "Could not build package for ${release} on ${arch}" >&2
# Run the build process
if ! sbuild --dist="${release}" --host="${arch}" --source "sources/${package}"; then
echo "Could not build package for ${release} on ${arch}" >&2
rm -rf "${tmp}/sources"
popd
rm -rf "${tmp}/sources"
popd
- # Cleanup
- rm -rf "${tmp}"
+ # Done!
+ echo "SUCCESS!"
+ echo " You can find your Debian packages in ${tmp}"
+ return 0