[arch-commits] Commit in slock/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Nov 9 22:18:41 UTC 2018


    Date: Friday, November 9, 2018 @ 22:18:40
  Author: foutrelis
Revision: 404913

archrelease: copy trunk to community-staging-x86_64

Added:
  slock/repos/community-staging-x86_64/
  slock/repos/community-staging-x86_64/PKGBUILD
    (from rev 404912, slock/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: slock/repos/community-staging-x86_64/PKGBUILD (from rev 404912, slock/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 22:18:40 UTC (rev 404913)
@@ -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=3
+pkgdesc="A simple screen locker for X"
+arch=('x86_64')
+url="http://tools.suckless.org/slock"
+license=('MIT')
+depends=('libxext' 'libxrandr')
+source=("http://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz")
+#source=("slock-$pkgver.tar.bz2::http://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