summaryrefslogtreecommitdiff
path: root/src/librefetch
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-05-29 16:26:32 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-05-30 11:39:51 -0400
commit6aae21e666601687011f4de5749189d5fde950e0 (patch)
tree2e12ce3c782a7b5b06d4b6212033c0c573b38f81 /src/librefetch
parent4d554c6ea9368ba5d0a9aeee1815a9d0f8b5ea48 (diff)
librefetch: Update for makepkg 5.1
Diffstat (limited to 'src/librefetch')
-rwxr-xr-xsrc/librefetch/librefetch5
-rw-r--r--src/librefetch/librefetch.8.ronn2
-rwxr-xr-xsrc/librefetch/librefetchdir/libmakepkg/tidy/purge.sh2
-rwxr-xr-xsrc/librefetch/librefetchdir/makepkg.gen17
4 files changed, 13 insertions, 13 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 04dcfd2..e96b866 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# librefetch
#
-# Copyright (C) 2013-2017 Luke Shumaker <lukeshu@parabola.nu>
+# Copyright (C) 2013-2018 Luke Shumaker <lukeshu@parabola.nu>
#
# For just the create_signature() function:
# Copyright (C) 2006-2013 Pacman Development Team <pacman-dev@archlinux.org>
@@ -346,7 +346,8 @@ checkdepends=() ; unset "checkdepends_${CARCH}"
makedepends=("${mkdepends[@]}") ; unset "makedepends_${CARCH}"
####
-options=(!strip docs libtool staticlibs emptydirs !zipman purge !upx !optipng !debug)
+# See packaging_options in the makepkg source
+options=(!strip docs libtool staticlibs emptydirs !zipman !debug purge)
PURGE_TARGETS=(.bzr/ .cvs/ .git/ .hg/ .svn/ .makepkg/)
####
diff --git a/src/librefetch/librefetch.8.ronn b/src/librefetch/librefetch.8.ronn
index 808c0fc..b65485f 100644
--- a/src/librefetch/librefetch.8.ronn
+++ b/src/librefetch/librefetch.8.ronn
@@ -167,7 +167,7 @@ Other changes:
* <options=()> is set have `makepkg` avoid making changes to
<$pkgdir>. The exact change is:
- options=(!strip docs libtool staticlibs emptydirs !zipman purge !upx)
+ options=(!strip docs libtool staticlibs emptydirs !zipman !debug purge)
* <PURGE_TARGETS=()> has VCS directories added to it:
diff --git a/src/librefetch/librefetchdir/libmakepkg/tidy/purge.sh b/src/librefetch/librefetchdir/libmakepkg/tidy/purge.sh
index 407d9d7..a37ff2f 100755
--- a/src/librefetch/librefetchdir/libmakepkg/tidy/purge.sh
+++ b/src/librefetch/librefetchdir/libmakepkg/tidy/purge.sh
@@ -2,7 +2,7 @@
#
# purge.sh - Remove unwanted files from the package
#
-# Copyright (c) 2008-2016 Pacman Development Team <pacman-dev@archlinux.org>
+# Copyright (c) 2008-2018 Pacman Development Team <pacman-dev@archlinux.org>
# Copyright (c) 2013-2016, 2018 Luke Shumaker <lukeshu@parabola.nu>
#
# License: GNU GPLv2+
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:|