aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2019-02-09 16:43:12 +0100
committerTharre <tharre3@gmail.com>2019-02-09 16:53:20 +0100
commit3503cc339826253acf0e8051cccc807901513cd1 (patch)
treedc7e0a95021997d5ccab189976eb932687b5ad91
parent63b0cd2c634e5099e05a6d9843f2cc3c3b6513b7 (diff)
downloadpkgbuilds-3503cc339826253acf0e8051cccc807901513cd1.tar.gz
pkgbuilds-3503cc339826253acf0e8051cccc807901513cd1.tar.xz
pkgbuilds-3503cc339826253acf0e8051cccc807901513cd1.zip
arch-system: $pkgver: avoid dependency on `date`
This avoids errors when date is unavailable, like the one below: Error: error: invalid package file Error: PKGBUILD: line 5: date: command not found Error: /startdir/PKGBUILD is not a valid PKGBUILD
-rw-r--r--arch-system/PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-system/PKGBUILD b/arch-system/PKGBUILD
index 1f47597..553a8a8 100644
--- a/arch-system/PKGBUILD
+++ b/arch-system/PKGBUILD
@@ -2,7 +2,7 @@
pkgbase=arch-system
pkgname=('base-system' 'backup-system' 'xps13')
-pkgver=$(date "+%Y.%m.%d")
+pkgver=$(printf '%(%Y.%m.%d)T')
pkgrel=1
pkgdesc="Arch Linux system configuration"
arch=("any")