mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-19 13:00:05 -07:00
kiss-new: Create tarballs.
This commit is contained in:
parent
d334334631
commit
06aaa4ece1
17
kiss-new
17
kiss-new
@ -380,6 +380,23 @@ pkg_build() {
|
||||
done
|
||||
|
||||
log "Generated all manifests."
|
||||
log "Creating package tarballs..."
|
||||
|
||||
for pkg; do
|
||||
# Find the package's repository files. This needs to keep
|
||||
# happening as we can't store this data in any kind of data
|
||||
# structure.
|
||||
repo_dir=$(pkg_search "$pkg")
|
||||
|
||||
# Read the version information to name the package.
|
||||
read -r version release < "$repo_dir/version"
|
||||
|
||||
# Create a tarball from the contents of the built package.
|
||||
tar zpcf "$bin_dir/$pkg-$version-$release.tar.gz" -C "$pkg_dir/$pkg" . ||
|
||||
die "[$pkg]: Failed to create tarball."
|
||||
done
|
||||
|
||||
log "Created all packages."
|
||||
}
|
||||
|
||||
pkg_checksums() {
|
||||
|
Loading…
Reference in New Issue
Block a user