aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sway/APKBUILD
blob: 438a3a1195b8116fadb87904f3dd4aff23b7aef2 (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
# Maintainer:
pkgname=sway
pkgver=0.15.2
pkgrel=1
pkgdesc="i3 compatible window manager for Wayland"
url="http://swaywm.org"
arch="all"
license="MIT"
options="suid !check"
depends=""
makedepends="asciidoc cmake dbus-dev 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"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	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"
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir/" install

	chmod u+s "$pkgdir"/usr/bin/sway

	local i; for i in 1 5 7; do
		install -Dm644 bin/*.$i \
			"$pkgdir"/usr/share/man/man$i/
	done
}

sha512sums="c457ace514f5c69ebd366d313cce93a76b199bb51c7540debc9c0586bff490401e6374f9725c784474afdfcca15bcab686a972c6c178117e45e2de83825ed370  sway-0.15.2.tar.gz"