[arch-commits] Commit in (4 files)

Brett Cornwall ainola at archlinux.org
Mon Mar 11 19:31:24 UTC 2019


    Date: Monday, March 11, 2019 @ 19:31:23
  Author: ainola
Revision: 439848

add swaylock (needed for sway)

Added:
  swaylock/
  swaylock/repos/
  swaylock/trunk/
  swaylock/trunk/PKGBUILD

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

Added: swaylock/trunk/PKGBUILD
===================================================================
--- swaylock/trunk/PKGBUILD	                        (rev 0)
+++ swaylock/trunk/PKGBUILD	2019-03-11 19:31:23 UTC (rev 439848)
@@ -0,0 +1,43 @@
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+# Contributor: gilbus
+
+pkgname=swaylock
+pkgver=1.3
+pkgrel=3
+license=("MIT")
+pkgdesc="Screen locker for Wayland"
+makedepends=(
+    'meson'
+    'scdoc'
+    'wayland-protocols'
+    'git'  # To make the version string
+)
+depends=(
+    'cairo'
+    'libxkbcommon'
+    'pam'
+    'wayland'
+    'gdk-pixbuf2'  # For images other than PNG
+)
+arch=('x86_64')
+url="https://github.com/swaywm/swaylock"
+source=(
+    "$pkgname-$pkgver.tar.gz::https://github.com/swaywm/swaylock/archive/$pkgver.tar.gz"
+    "https://github.com/swaywm/swaylock/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.sig"
+)
+sha256sums=('3bf4143136e688af2f31d10c0be26d14e371f31bfceec1d98db88abfe0f7a94c'
+            'SKIP')
+validpgpkeys=("9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A")  # Drew DeVault
+
+build() {
+    meson "$pkgname-$pkgver" build \
+        --prefix /usr \
+        --buildtype=plain
+    ninja -C build
+}
+
+package() {
+    DESTDIR="$pkgdir/" ninja -C build install
+    install -Dm644 "$pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
+    install -Dm644 "$pkgname-$pkgver/README.md" -t "$pkgdir/usr/share/docs/$pkgname"
+}


More information about the arch-commits mailing list