aboutsummaryrefslogtreecommitdiffstats
path: root/community/swaylock
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-13 13:57:53 -0600
committerHenrik Riomar <henrik.riomar@gmail.com>2019-03-13 21:02:18 +0100
commit1bd1ae0e1731c99d7f44a6593d8ff77481fbf059 (patch)
tree40af9d13c3e49975260fd4350b09ebbcb05a0d8d /community/swaylock
parentbf0d8e597720e48903734fc1d292bb61325b1726 (diff)
downloadaports-1bd1ae0e1731c99d7f44a6593d8ff77481fbf059.tar.bz2
aports-1bd1ae0e1731c99d7f44a6593d8ff77481fbf059.tar.xz
community/swaylock: move from testing
Diffstat (limited to 'community/swaylock')
-rw-r--r--community/swaylock/APKBUILD73
1 files changed, 73 insertions, 0 deletions
diff --git a/community/swaylock/APKBUILD b/community/swaylock/APKBUILD
new file mode 100644
index 0000000000..42db5eafba
--- /dev/null
+++ b/community/swaylock/APKBUILD
@@ -0,0 +1,73 @@
+# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=swaylock
+pkgver=1.3
+pkgrel=3
+pkgdesc="Screen locker for Wayland"
+url="http://swaywm.org"
+arch="all"
+license="MIT"
+options="!check"
+makedepends="cairo-dev
+ gdk-pixbuf-dev
+ libxkbcommon-dev
+ linux-pam-dev
+ meson
+ ninja
+ scdoc
+ wayland-dev
+ wayland-protocols
+ "
+subpackages="
+ $pkgname-doc
+ $pkgname-bash-completion:bashcomp:noarch
+ $pkgname-fish-completion:fishcomp:noarch
+ $pkgname-zsh-completion:zshcomp:noarch
+ "
+source="$pkgname-$pkgver.tar.gz::https://github.com/swaywm/$pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ sed -i 's/login/base-auth/g' \
+ pam/swaylock.linux
+}
+
+build() {
+ cd "$builddir"
+ meson -Dswaylock-version="$pkgver" --prefix /usr build
+ ninja -C build
+}
+
+package() {
+ cd "$builddir"
+ DESTDIR="$pkgdir" ninja -C build install
+}
+
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ mkdir -p "$subpkgdir"/usr/share/
+ mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/
+}
+
+fishcomp() {
+ depends=""
+ pkgdesc="Fish completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel fish"
+
+ mkdir -p "$subpkgdir"/usr/share/fish
+ mv "$pkgdir"/usr/share/fish/completions "$subpkgdir"/usr/share/fish
+}
+
+zshcomp() {
+ depends=""
+ pkgdesc="Zsh completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+
+ mkdir -p "$subpkgdir"/usr/share/zsh
+ mv "$pkgdir"/usr/share/zsh/site-functions "$subpkgdir"/usr/share/zsh
+}
+sha512sums="723d758d76f076f3f1539ea0d651f6ad2562659c72eef7e895d7827a0be21db663652fe4ce2609065aff45ff20230879599868cff327ab52b896330ca04d78c4 swaylock-1.3.tar.gz"