[arch-commits] Commit in slock/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 12:29:06 UTC 2020
Date: Tuesday, July 7, 2020 @ 12:29:05
Author: felixonmars
Revision: 658138
archrelease: copy trunk to community-staging-x86_64
Added:
slock/repos/community-staging-x86_64/
slock/repos/community-staging-x86_64/PKGBUILD
(from rev 658137, slock/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: slock/repos/community-staging-x86_64/PKGBUILD (from rev 658137, slock/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 12:29:05 UTC (rev 658138)
@@ -0,0 +1,31 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sebastian A. Liem <sebastian at liem dot se>
+
+pkgname=slock
+pkgver=1.4
+pkgrel=4
+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")
+#source=("slock-$pkgver.tar.bz2::https://hg.suckless.org/slock/archive/$_pkgver.tar.gz")
+md5sums=('f91dd5ba50ce7bd1842caeca067086a3')
+
+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
+}
+
+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"
+}
More information about the arch-commits
mailing list