From 0818dd2ceb75aa17d029ae4c6fbe04f52c325433 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 15 Sep 2018 21:14:34 +0200 Subject: [PATCH] Slight improvement to cpkg. --- src/cpkg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpkg b/src/cpkg index fcb1c75..62acac4 100755 --- a/src/cpkg +++ b/src/cpkg @@ -39,6 +39,10 @@ then else env DESTDIR=$PKGDIR "$@" PKGNAME=$(basename $(pwd)) + if [ "$PKGNAME" = "build" ] + then + PKGNAME=$(basename $(cd ..; pwd)) + fi PKGDEST="${FPKG_ROOT}/pkg"