[arch-commits] Commit in slock/repos/community-x86_64 (4 files)

Allan McRae allan at gemini.archlinux.org
Thu Mar 3 01:32:15 UTC 2022


    Date: Thursday, March 3, 2022 @ 01:32:15
  Author: allan
Revision: 1140142

archrelease: copy trunk to community-x86_64

Added:
  slock/repos/community-x86_64/PKGBUILD
    (from rev 1140141, slock/trunk/PKGBUILD)
  slock/repos/community-x86_64/backspace.patch
    (from rev 1140141, slock/trunk/backspace.patch)
Deleted:
  slock/repos/community-x86_64/PKGBUILD
  slock/repos/community-x86_64/backspace.patch

-----------------+
 PKGBUILD        |   66 +++++++++++++++++++++++++++---------------------------
 backspace.patch |   60 ++++++++++++++++++++++++-------------------------
 2 files changed, 63 insertions(+), 63 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-03 01:31:54 UTC (rev 1140141)
+++ PKGBUILD	2022-03-03 01:32:15 UTC (rev 1140142)
@@ -1,33 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Sebastian A. Liem <sebastian at liem dot se>
-
-pkgname=slock
-pkgver=1.4
-pkgrel=5
-pkgdesc="A simple screen locker for X"
-arch=('x86_64')
-url="https://tools.suckless.org/slock"
-license=('MIT')
-depends=('libxext' 'libxrandr')
-source=("https://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz"
-	"backspace.patch")
-sha256sums=('b53849dbc60109a987d7a49b8da197305c29307fd74c12dc18af0d3044392e6a'
-            '38041869ef4e3aef60dec64c2ee2c297f7d2e5fb873b748634fdfbcfc3834a97')
-
-prepare() {
-  cd "$srcdir/slock-$pkgver"
-  sed -i 's|static const char \*group = "nogroup";|static const char *group = "nobody";|' config.def.h
-  sed -ri 's/((CPP|C|LD)FLAGS) =/\1 +=/g' config.mk
-  patch -p1 <../backspace.patch
-}
-
-build() {
-  cd "$srcdir/slock-$pkgver"
-  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
-}
-
-package() {
-  cd "$srcdir/slock-$pkgver"
-  make PREFIX=/usr DESTDIR="$pkgdir" install
-  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: slock/repos/community-x86_64/PKGBUILD (from rev 1140141, slock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-03 01:32:15 UTC (rev 1140142)
@@ -0,0 +1,33 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sebastian A. Liem <sebastian at liem dot se>
+
+pkgname=slock
+pkgver=1.4
+pkgrel=6
+pkgdesc="A simple screen locker for X"
+arch=('x86_64')
+url="https://tools.suckless.org/slock"
+license=('MIT')
+depends=('libxext' 'libxrandr')
+source=("https://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz"
+	"backspace.patch")
+sha256sums=('b53849dbc60109a987d7a49b8da197305c29307fd74c12dc18af0d3044392e6a'
+            '38041869ef4e3aef60dec64c2ee2c297f7d2e5fb873b748634fdfbcfc3834a97')
+
+prepare() {
+  cd "$srcdir/slock-$pkgver"
+  sed -i 's|static const char \*group = "nogroup";|static const char *group = "nobody";|' config.def.h
+  sed -ri 's/((CPP|C|LD)FLAGS) =/\1 +=/g' config.mk
+  patch -p1 <../backspace.patch
+}
+
+build() {
+  cd "$srcdir/slock-$pkgver"
+  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
+}
+
+package() {
+  cd "$srcdir/slock-$pkgver"
+  make PREFIX=/usr DESTDIR="$pkgdir" install
+  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Deleted: backspace.patch
===================================================================
--- backspace.patch	2022-03-03 01:31:54 UTC (rev 1140141)
+++ backspace.patch	2022-03-03 01:32:15 UTC (rev 1140142)
@@ -1,30 +0,0 @@
-commit 35633d45672d14bd798c478c45d1a17064701aa9
-Author: Tobias Stoeckmann <tobias at stoeckmann.org>
-Date:   Sat Mar 25 21:16:01 2017 +0100
-
-    Properly clear the last entered character
-    
-    When enter is pressed, passwd[len] will be set to '\0'. Pressing
-    backspace is supposed to remove the last entered character.
-    
-    But currently, the clearing has an off-by-one, as in setting
-    passwd[len] to '\0' just like enter would do.
-    
-    You can also verify it by imagining len=1 and that it's impossible to
-    clear passwd[0] by pressing backspace with the current code.
-    
-    Signed-off-by: Tobias Stoeckmann <tobias at stoeckmann.org>
-
-diff --git a/slock.c b/slock.c
-index d55eb3d..5ae738c 100644
---- a/slock.c
-+++ b/slock.c
-@@ -177,7 +177,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
- 				break;
- 			case XK_BackSpace:
- 				if (len)
--					passwd[len--] = '\0';
-+					passwd[--len] = '\0';
- 				break;
- 			default:
- 				if (num && !iscntrl((int)buf[0]) &&

Copied: slock/repos/community-x86_64/backspace.patch (from rev 1140141, slock/trunk/backspace.patch)
===================================================================
--- backspace.patch	                        (rev 0)
+++ backspace.patch	2022-03-03 01:32:15 UTC (rev 1140142)
@@ -0,0 +1,30 @@
+commit 35633d45672d14bd798c478c45d1a17064701aa9
+Author: Tobias Stoeckmann <tobias at stoeckmann.org>
+Date:   Sat Mar 25 21:16:01 2017 +0100
+
+    Properly clear the last entered character
+    
+    When enter is pressed, passwd[len] will be set to '\0'. Pressing
+    backspace is supposed to remove the last entered character.
+    
+    But currently, the clearing has an off-by-one, as in setting
+    passwd[len] to '\0' just like enter would do.
+    
+    You can also verify it by imagining len=1 and that it's impossible to
+    clear passwd[0] by pressing backspace with the current code.
+    
+    Signed-off-by: Tobias Stoeckmann <tobias at stoeckmann.org>
+
+diff --git a/slock.c b/slock.c
+index d55eb3d..5ae738c 100644
+--- a/slock.c
++++ b/slock.c
+@@ -177,7 +177,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
+ 				break;
+ 			case XK_BackSpace:
+ 				if (len)
+-					passwd[len--] = '\0';
++					passwd[--len] = '\0';
+ 				break;
+ 			default:
+ 				if (num && !iscntrl((int)buf[0]) &&



More information about the arch-commits mailing list