# Contributor: Henrik Riomar # Maintainer: pkgname=sway pkgver=1.0_rc4 _pkgver=1.0-rc4 pkgrel=1 pkgdesc="i3 compatible window manager for Wayland" url="http://swaywm.org" arch="all" license="MIT" options="suid !check" depends="" makedepends="cairo-dev gdk-pixbuf-dev json-c-dev libevdev-dev libinput-dev libxkbcommon-dev linux-pam-dev meson ninja pango-dev pcre2-dev scdoc wayland-dev wayland-protocols wlroots-dev " 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" build() { cd "$builddir" meson build --prefix /usr ninja -C build } 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-completion" 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 } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C build install chmod u+s "$pkgdir"/usr/bin/sway } sha512sums="8c79be79a9ed0c659b07aadf8c4a1ea09848c36613ae73368d03264b402ec7226aff79bcaf79ae44cda71e9fb972fed2c3649e3fb049d81c3d0e232b8605d312 sway-1.0-rc4.tar.gz"