aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-16 07:12:48 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-16 07:12:48 +0000
commitab7e2e17cd5adeee36c4d202a5da9d719aff1fd2 (patch)
tree2f4494097dd57625de4a5ae0eb151bb3d6392ad2 /kiss
parent047ff13b39649f99b54f36bffb551d7d2b5ef95e (diff)
downloadcpt-ab7e2e17cd5adeee36c4d202a5da9d719aff1fd2.tar.gz
kiss: Use fakeroot to build and tar packages.
FossilOrigin-Name: 19b9f114285d309564f6fcb33cfc0046d9d8fbe989b9cc568a7a18bfcc65358c
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss12
1 files changed, 7 insertions, 5 deletions
diff --git a/kiss b/kiss
index 4789fa6..b31f538 100755
--- a/kiss
+++ b/kiss
@@ -337,9 +337,11 @@ pkg_tar() {
# Read the version information to name the package.
read -r version release < "$repo_dir/version"
- # Create a tar-ball from the contents of the built package.
- tar zpcf "$bin_dir/$1#$version-$release.tar.gz" -C "$pkg_dir/$1" . ||
- die "[$1]: Failed to create tar-ball."
+ # Create a tar-ball from the contents of the built package. `fakeroot`
+ # is used here to correct issues with file ownership.
+ fakeroot \
+ tar zpcf "$bin_dir/$1#$version-$release.tar.gz" -C "$pkg_dir/$1" . ||
+ die "[$1]: Failed to create tar-ball."
log "[$1]: Successfully created tar-ball."
}
@@ -487,7 +489,7 @@ pkg_build() {
mkdir -p "$pkg_dir/$pkg/var/db/kiss"
# Move to the build directory and call the build script.
- (cd "$mak_dir/$pkg"; "$repo_dir/build" "$pkg_dir/$pkg") ||
+ (cd "$mak_dir/$pkg"; fakeroot "$repo_dir/build" "$pkg_dir/$pkg") ||
die "[$pkg]: Build failed."
# Copy the repository files to the package directory.
@@ -950,7 +952,7 @@ args() {
# Print version and exit.
v*)
- log "$kiss 0.3.1"
+ log "$kiss 0.3.2"
;;
# Catch all invalid arguments as well as