1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

kiss: Give tarball to post-package hook. See #234

This commit is contained in:
Dylan Araps 2021-07-15 07:30:09 +03:00
parent ec3952b014
commit c0cc18b6ee
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

7
kiss
View File

@ -710,6 +710,8 @@ pkg_tar() (
# across implementations.
cd "$pkg_dir/$1"
_tar_file=$bin_dir/$1@$repo_ver-$repo_rel.tar.$KISS_COMPRESS
# Create a tarball from the contents of the built package.
tar cf - . | case $KISS_COMPRESS in
bz2) bzip2 -z ;;
@ -718,13 +720,14 @@ pkg_tar() (
lz) lzip -z ;;
xz) xz -zT0 ;;
zst) zstd -z ;;
esac > "$bin_dir/$1@$repo_ver-$repo_rel.tar.$KISS_COMPRESS"
esac > "$_tar_file"
log "$1" "Successfully created tarball"
# arg1: post-package
# arg2: package name
run_hook post-package "$1"
# arg3: path to tarball
run_hook post-package "$1" "$_tar_file"
)
pkg_build_all() {