aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sway/APKBUILD
blob: 7424c1dc13f579fead9820a6ee7a19ed90cd62e1 (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.11
pkgrel=0
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 libcap-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

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

md5sums="8b69e1b19626952ab55e726d3cd06da6  sway-0.11.tar.gz"
sha256sums="3d4d18afc849db8704d8da9cb69eb121ea92b27d7fa556acdcc6708f05c84964  sway-0.11.tar.gz"
sha512sums="4cd69c83a0c8815ddc1663b4cd4b69c8d99d6d9d2a030e575c544836e3dfba445bc6407f7eaf97c0d7fdefd62e3ceed4206195ad91701f840ec8686f3b75989c  sway-0.11.tar.gz"