[arch-commits] Commit in unrealircd/trunk (PKGBUILD source-date-epoch.patch)
Kpcyrd
kpcyrd at gemini.archlinux.org
Thu Dec 16 12:10:50 UTC 2021
Date: Thursday, December 16, 2021 @ 12:10:50
Author: kpcyrd
Revision: 1074360
upgpkg: unrealircd 5.2.2-2
Added:
unrealircd/trunk/source-date-epoch.patch
Modified:
unrealircd/trunk/PKGBUILD
-------------------------+
PKGBUILD | 9 ++++++---
source-date-epoch.patch | 16 ++++++++++++++++
2 files changed, 22 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-16 12:08:17 UTC (rev 1074359)
+++ PKGBUILD 2021-12-16 12:10:50 UTC (rev 1074360)
@@ -3,7 +3,7 @@
pkgname=unrealircd
pkgver=5.2.2
-pkgrel=1
+pkgrel=2
pkgdesc="Open Source IRC Server"
arch=('x86_64')
url="https://www.unrealircd.org"
@@ -18,13 +18,15 @@
unrealircd.service
unrealircd.tmpfiles.d
unrealircd.sysusers.d
- install.pl)
+ install.pl
+ source-date-epoch.patch)
sha256sums=('fa9a3d495d41973acbc5bb93277045d94ded1607bd05324874d4340ad90700ab'
'SKIP'
'0a6d3c269ba5379f967b2ec035ad4c6226d42ce22ffaaf8c3e5b37ba8ee02ddd'
'75360541bc3aec9c1241c75e0ce60214c65cb618ffe5ca77144f01651ef5ab5b'
'9e595176e63b301476982b1456d6ed065c479ff913b6743417ab8a9efdda0e3a'
- '43f07093ada8eb5c954f9e2e189610575906c690c0953fec041d4f2d31210d85')
+ '43f07093ada8eb5c954f9e2e189610575906c690c0953fec041d4f2d31210d85'
+ '1b9b3d5560f6633d4f31a521bc0ae17094d3afa28e703b4790eaefedcc9a92a8')
prepare() {
cd "$srcdir"/unrealircd-$pkgver
@@ -32,6 +34,7 @@
-e 's|$(INSTALL) -m 0700|$(INSTALL) -m 0755|g' \
-e 's|$(INSTALL) -m 0600|$(INSTALL) -m 0644|g' \
Makefile.in
+ patch -p1 < ../source-date-epoch.patch
}
build() {
Added: source-date-epoch.patch
===================================================================
--- source-date-epoch.patch (rev 0)
+++ source-date-epoch.patch 2021-12-16 12:10:50 UTC (rev 1074360)
@@ -0,0 +1,16 @@
+diff --git a/src/version.c.SH b/src/version.c.SH
+index 03b5b2881..9f7dcc40e 100644
+--- a/src/version.c.SH
++++ b/src/version.c.SH
+@@ -22,7 +22,10 @@ generation=`expr $generation + 1`
+ export LANG=C
+ export LC_TIME=C
+ export LC_ALL=C
+-creation=`date | \
++SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}"
++# fallback to -r seconds for BSD
++BUILD_DATE=$(date -u -d "@$SOURCE_DATE_EPOCH" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" 2>/dev/null || date -u)
++creation=`echo "$BUILD_DATE" | \
+ awk '{if (NF == 6) \
+ { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
+ else \
More information about the arch-commits
mailing list