# Maintainer: pkgname=sway pkgver=1.0_beta2 _pkgver=1.0-beta.2 pkgrel=0 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 linux-pam-dev meson ninja pango-dev pcre2-dev scdoc wayland-dev wayland-protocols wlroots-dev " subpackages="$pkgname-doc" source="$pkgname-$_pkgver.tar.gz::https://github.com/swaywm/$pkgname/archive/$_pkgver.tar.gz 0001-swaylock-fix-build-with-musl-libc.patch " builddir="$srcdir/$pkgname-$_pkgver" prepare() { default_prepare sed -i 's/login/base-auth/g' \ swaylock/pam/swaylock.linux } build() { cd "$builddir" meson build --prefix /usr ninja -C build } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C build install chmod u+s "$pkgdir"/usr/bin/sway } sha512sums="532acb6f1510578b7d9d222f04ff8104c836428ef215ddb6d7181839231d65101b3d47c8389a38f14cf59692116495b60759062ebd797edf83cf77aebaac379f sway-1.0-beta.2.tar.gz cad753bcee43c87adcbcfdc542bd16c9fec4b67ccea3cd8ae364d640036f22306bcd0294d06d155d0b12eae11fa357fbaa8d272547f1217c7e307180654293d6 0001-swaylock-fix-build-with-musl-libc.patch"