1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-19 13:00:05 -07:00

kiss-new: Added manifests.

This commit is contained in:
Dylan Araps 2019-06-29 18:20:53 +03:00
parent 303a80c9d9
commit d334334631

View File

@ -329,7 +329,7 @@ pkg_build() {
# Copy the repository files to the package directory. # Copy the repository files to the package directory.
# This acts as the database entry. # This acts as the database entry.
cp -Rf "$repo_dir" "$pkg_dir/$pkg/var/db/$kiss" cp -Rf "$repo_dir" "$pkg_dir/$pkg/var/db/$kiss/"
log "[$pkg]: Sucessfully built package." log "[$pkg]: Sucessfully built package."
@ -367,6 +367,19 @@ pkg_build() {
done done
log "Stripped all binaries and libraries." log "Stripped all binaries and libraries."
log "Generating package manifests..."
for pkg; do
# This runs in a subshell so we can avoid a 'cd -' or 'cd $OLDPWD'.
(
cd "$pkg_dir/$pkg"
find . -type d -exec printf '%s/\n' {} + -or -print
) | sort -r | sed -e ss.ss > "$pkg_dir/$pkg/var/db/$kiss/$pkg/manifest"
log "[$pkg]: Generated manifest."
done
log "Generated all manifests."
} }
pkg_checksums() { pkg_checksums() {