diff --git a/build.sh b/build.sh index 11c375c..b24192f 100755 --- a/build.sh +++ b/build.sh @@ -137,12 +137,9 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do mkdir -p $deb_pkg_dir echo $package_control_file | sed -E "s/REPLACE_ARCHITECTURE/$arch/g" > $deb_pkg_dir/control - cd $dir - dpkg-deb --build $target mkdir -p $SCRIPT_PATH/debs - deb_file=$SCRIPT_PATH/debs/$target-$VERSION-$arch.deb - rm -f $deb_file - cp $target.deb $deb_file + cd $dir + dh_builddeb --destdir $SCRIPT_PATH/debs rm -rf $dir else echo "Skipping arch $arch"