summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ee4c1978eeef6e0715bb1e6d6cf0806535b6589 (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
66
67
68
69
70
71
72
73
74
75
76
# newm - Wayland compositor
# Maintainer: L0Wigh <mathiotthomas@gmail.com>

pkgname=newm-next-git
pkgver=0.4.2
pkgrel=1
license=('MIT')
pkgdesc="newm-next Wayland compositor"
depends=(
	python3
	wayland
	libinput
	libxcb
	libxkbcommon
	opengl-driver
	pixman
	xcb-util-errors
	xcb-util-renderutil
	xcb-util-wm
	seatd
	xorg-xwayland

	python-evdev
	python-numpy
	python-imageio

	python-cairo
	python-psutil
	python-pam
	python-pyfiglet
	python-thefuzz
	python-dasbus
)
makedepends=(
	git
	sed
	python3
	meson
	ninja
	wayland-protocols
	xorgproto
)
arch=('any')
url="https://github.com/newm-next/newm-next"
source=(
	'git+https://github.com/newm-next/pywm-next'
	'git+https://github.com/newm-next/newm-next'
)
sha512sums=(
	'SKIP'
	'SKIP'
)
provides=('newm')
conflicts=('newm' 'newm-git' 'newm-atha-git')

pkgver() {
	echo "0.4.1"
}
prepare() {
	cd "$srcdir"/pywm-next
	git submodule init
	git submodule update --init --recursive
}
build() {
	cd "$srcdir"/pywm-next
	python3 setup.py build
	cd "$srcdir"/newm-next
	python3 setup.py build
}
package() {
	cd "$srcdir"/pywm-next
	python3 setup.py install --root="$pkgdir" --optimize=1
	cd "$srcdir"/newm-next
	python3 setup.py install --root="$pkgdir" --optimize=1
	install -Dm644 "$srcdir/newm-next/newm/resources/newm.desktop" "$pkgdir/usr/share/wayland-sessions/newm.desktop"
}