summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c0abc0b1e77b9ed668df41c2c7389ff7c391dfd (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: uncognic <92607100+uncognic@users.noreply.github.com>

pkgname=steppewm-git
_pkgname=steppewm
pkgver=r1.0000000
pkgrel=1
pkgdesc='Minimal stacking Wayland compositor using wlroots (git)'
arch=('x86_64' 'aarch64')
url='https://github.com/uncognic/steppewm'
license=('GPL-3.0-or-later')
depends=(
	'cairo'
	'glib2'
	'glibc'
	'libgcc'
	'libinput'
	'libpulse'
	'librsvg'
	'libstdc++'
	'libxkbcommon'
	'lua54'
	'sdbus-cpp'
	'wayland'
	'wlroots0.20'
)
makedepends=(
	'git'
	'meson'
	'ninja'
	'pixman'
	'pkgconf'
	'wayland-protocols'
)
optdepends=(
	'xwayland-satellite: XWayland support'
	'swaybg: wallpaper'
	'swayidle: idle management'
	'wlr-randr: output configuration'
	'wlopm: output power management'
	'wlrctl: window and input control from the shell'
)
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
b2sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	arch-meson "$_pkgname" build
	meson compile -C build
}

package() {
	meson install -C build --destdir "$pkgdir"
	install -Dm644 "$_pkgname/config.lua" \
		"$pkgdir/usr/share/doc/$_pkgname/config.lua"
	install -Dm644 "$_pkgname/doc/steppewm.md" \
		"$pkgdir/usr/share/doc/$_pkgname/steppewm.md"
	install -Dm644 "$_pkgname/README.md" \
		"$pkgdir/usr/share/doc/$_pkgname/README.md"
}