# Contributor: Daniel Sabogal # Maintainer: pkgname=sway pkgver=0.10 pkgrel=2 pkgdesc="i3 compatible window manager for Wayland" url="http://swaywm.org" arch="all" license="MIT" options="suid" depends="libxcursor" makedepends="asciidoc cmake gdk-pixbuf json-c-dev libinput-dev libxkbcommon-dev linux-pam-dev pango-dev wayland-dev wlc-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/SirCmpwn/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare || return 1 cd "$builddir" sed -i 's/login/base-auth/g' swaylock/pam/swaylock } build() { cd "$builddir" cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DCMAKE_INSTALL_PREFIX=/usr \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir/" install || return 1 chmod u+s "$pkgdir"/usr/bin/sway || return 1 install -d "$pkgdir"/usr/share/man/man1 install -d "$pkgdir"/usr/share/man/man5 install -m644 bin/*.1 "$pkgdir"/usr/share/man/man1/ || return 1 install -m644 bin/*.5 "$pkgdir"/usr/share/man/man5/ || return 1 } md5sums="ede757d96fdc19d204d4204653a394b8 sway-0.10.tar.gz" sha256sums="9723baf037cf7e9de557e4ca9a54280594962ec1cf85e736592b860789b447f1 sway-0.10.tar.gz" sha512sums="2a8d6c716956848f30fe680945e0106bf310597926708da24a76853fcf384dbcfb09882692eaa88a5d62171500028ff9ae21082f4aca6386dc0c346d847943c2 sway-0.10.tar.gz"