blob: 8c05b0451cb4c9dad789cb2c0600cbbde983683b (
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
|
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=sway
pkgver=0.13.0
pkgrel=0
pkgdesc="i3 compatible window manager for Wayland"
url="http://swaywm.org"
arch="all"
license="MIT"
options="suid !check"
depends=""
makedepends="asciidoc cmake gdk-pixbuf-dev json-c-dev libcap-dev libinput-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
stdint.patch"
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 \
-DVERSION="$pkgver" \
|| return 1
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir/" install || return 1
chmod u+s "$pkgdir"/usr/bin/sway || return 1
local i; for i in 1 5 7; do
install -Dm644 bin/*.$i \
"$pkgdir"/usr/share/man/man$i/ || return 1
done
}
sha512sums="7f137e103bb278777ee3e36b40446156ee02bfbba3ce099b23b093751832a67155cd9519f7583364608d584d2d7c9206a8945f2114ae58220b47bd0f1ff362e8 sway-0.13.0.tar.gz
4967a6b1552a47be1ee978e2d9c590fc3748670fb321afb8c7a6134bc0cb237b5b98ce00f777e02ac6029265c690910a1688a0f56ff2f3125bd663f9444b737c stdint.patch"
|