summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/makepkg.sh.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 25a8fc26..33f5deb4 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -708,8 +708,11 @@ write_buildinfo() {
# database files are placed at the beginning of the package regardless of
# sorting
list_package_files() {
- (find . -path './.*' \! -name '.'; find . \! -path './.*' \! -name '.' | LC_ALL=C sort) |
- sed -e 's|^\./||' | tr '\n' '\0'
+ (
+ export LC_COLLATE=C
+ shopt -s dotglob globstar
+ printf '%s\0' **
+ )
}
create_package() {