[arch-commits] Commit in charm/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Wed Aug 10 07:13:18 UTC 2022


    Date: Wednesday, August 10, 2022 @ 07:13:18
  Author: grawlinson
Revision: 1265019

upgpkg: charm 0.12.3-1

* New upstream release.
* Generate reproducible man pages.

Modified:
  charm/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-10 07:11:50 UTC (rev 1265018)
+++ PKGBUILD	2022-08-10 07:13:18 UTC (rev 1265019)
@@ -2,7 +2,7 @@
 # Contributor: Christian Muehlhaeuser <muesli at gmail dot com>
 
 pkgname=charm
-pkgver=0.12.1
+pkgver=0.12.3
 pkgrel=1
 pkgdesc='The backend for the Charm cloud'
 arch=('x86_64')
@@ -14,7 +14,7 @@
 replaces=('charm-tool')
 backup=('etc/charm.conf')
 options=('!lto')
-_commit='24b4bbdd7ee0a98f2b68973999f47f79799bd368'
+_commit='0034cb493f2ec0742a9c5a0edf4853d38af9463e'
 source=(
   "git+https://github.com/charmbracelet/charm.git#commit=$_commit"
   'charm.conf'
@@ -62,6 +62,18 @@
     -o build \
     .
 
+  # generate man page
+  ./build/charm man > build/charm.1
+
+  # ensure reproducibility of man page
+  # i'm not 100% sure where the man sub-command gets the date from, i assume
+  # it uses $TODAYS_DATE, so this should make the man page reproducible
+  local _commit_date=$(git show --no-patch --format=%cd --date=format:%Y-%m-%d)
+
+  sed \
+    -i build/charm.1 \
+    -e "s/\"[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\"/\"$_commit_date\"/"
+
   # generate shell completion
   for shell in bash fish zsh; do
     ./build/charm completion "$shell" > "build/$shell.completion"
@@ -91,6 +103,9 @@
   install -vDm644 build/fish.completion "$pkgdir/usr/share/fish/vendor_completions.d/charm.fish"
   install -vDm644 build/zsh.completion "$pkgdir/usr/share/zsh/site-functions/_charm"
 
+  # man page
+  install -vDm644 -t "$pkgdir/usr/share/man/man1" build/charm.1
+
   # license
   install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
 }



More information about the arch-commits mailing list