blob: ed50c5ce118dccf4549ad1fb3bee2a8e2d6ee40b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# 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"
|