diff options
Diffstat (limited to 'src/librefetch/librefetchdir/makepkg.gen')
-rwxr-xr-x | src/librefetch/librefetchdir/makepkg.gen | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/librefetch/librefetchdir/makepkg.gen b/src/librefetch/librefetchdir/makepkg.gen index 59052c6..dfe68f5 100755 --- a/src/librefetch/librefetchdir/makepkg.gen +++ b/src/librefetch/librefetchdir/makepkg.gen @@ -1,7 +1,7 @@ #!/usr/bin/sed -rf # librefetchdir/makepkg.gen # -# Copyright (C) 2013-2017 Luke Shumaker <lukeshu@parabola.nu> +# Copyright (C) 2013-2018 Luke Shumaker <lukeshu@parabola.nu> # # License: GNU GPLv3+ # @@ -22,15 +22,14 @@ /LIBRARY=/iexport LIBRARY="${0%/*}/libmakepkg" +/list_package_files\(\) \{/,/^\}$/ { + # Don't include dotfiles + s,\(.*; (.* \| LC_ALL=C sort)\),\1, +} + /create_package\(\) \{/,/^\}$/ { - /pkg_file=/d # allow us to set pkg_file - s/"?\$\{comp_files\[@\]\}"?// # do not include .{PKGINFO,BUILDINGO,CHANGELOG,INSTALL,MTREE} - # This is long/gross. What it does: - # - pass --format=ustar to bsdtar, to inhibit it using the pax format - # - take the files that would be included in the tarball, and use - # find/sort/--files-from to order them for bsdtar - s/bsdtar(.*) - ([^|]*) \|/find \2 -print0 | LC_ALL=C sort --zero-terminated | bsdtar --null --files-from - --format=ustar --no-recursion \1 - |/ - s/create_signature .*/&; return/ # do not procede to create symlinks + # allow us to set pkg_file + /pkg_file=/d } s|Making package:|Making source:| |