aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sway/APKBUILD
blob: d0bd5bdd6bb44eb6223665872b6ce5bba8624f22 (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
50
# Maintainer:
pkgname=sway
pkgver=1.0_beta2
_pkgver=1.0-beta.2
pkgrel=0
pkgdesc="i3 compatible window manager for Wayland"
url="http://swaywm.org"
arch="all"
license="MIT"
options="suid !check"
depends=""
makedepends="cairo-dev
	gdk-pixbuf-dev
	json-c-dev
	linux-pam-dev
	meson
	ninja
	pango-dev
	pcre2-dev
	scdoc
	wayland-dev
	wayland-protocols
	wlroots-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$_pkgver.tar.gz::https://github.com/swaywm/$pkgname/archive/$_pkgver.tar.gz
	0001-swaylock-fix-build-with-musl-libc.patch
	"
builddir="$srcdir/$pkgname-$_pkgver"

prepare() {
	default_prepare
	sed -i 's/login/base-auth/g' \
		swaylock/pam/swaylock.linux
}

build() {
	cd "$builddir"
	meson build --prefix /usr
	ninja -C build
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" ninja -C build install
	chmod u+s "$pkgdir"/usr/bin/sway
}

sha512sums="532acb6f1510578b7d9d222f04ff8104c836428ef215ddb6d7181839231d65101b3d47c8389a38f14cf59692116495b60759062ebd797edf83cf77aebaac379f  sway-1.0-beta.2.tar.gz
cad753bcee43c87adcbcfdc542bd16c9fec4b67ccea3cd8ae364d640036f22306bcd0294d06d155d0b12eae11fa357fbaa8d272547f1217c7e307180654293d6  0001-swaylock-fix-build-with-musl-libc.patch"