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:
parent
ec3952b014
commit
c0cc18b6ee
7
kiss
7
kiss
@ -710,6 +710,8 @@ pkg_tar() (
|
|||||||
# across implementations.
|
# across implementations.
|
||||||
cd "$pkg_dir/$1"
|
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.
|
# Create a tarball from the contents of the built package.
|
||||||
tar cf - . | case $KISS_COMPRESS in
|
tar cf - . | case $KISS_COMPRESS in
|
||||||
bz2) bzip2 -z ;;
|
bz2) bzip2 -z ;;
|
||||||
@ -718,13 +720,14 @@ pkg_tar() (
|
|||||||
lz) lzip -z ;;
|
lz) lzip -z ;;
|
||||||
xz) xz -zT0 ;;
|
xz) xz -zT0 ;;
|
||||||
zst) zstd -z ;;
|
zst) zstd -z ;;
|
||||||
esac > "$bin_dir/$1@$repo_ver-$repo_rel.tar.$KISS_COMPRESS"
|
esac > "$_tar_file"
|
||||||
|
|
||||||
log "$1" "Successfully created tarball"
|
log "$1" "Successfully created tarball"
|
||||||
|
|
||||||
# arg1: post-package
|
# arg1: post-package
|
||||||
# arg2: package name
|
# arg2: package name
|
||||||
run_hook post-package "$1"
|
# arg3: path to tarball
|
||||||
|
run_hook post-package "$1" "$_tar_file"
|
||||||
)
|
)
|
||||||
|
|
||||||
pkg_build_all() {
|
pkg_build_all() {
|
||||||
|
Loading…
Reference in New Issue
Block a user