blob: b560fa802a8ae21b2aea3a51e42545c52f5ae774 (
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
|
pkgname=river-noxwayland
pkgver=0.2.6
pkgrel=1
pkgdesc='A dynamic tiling wayland compositor'
arch=('x86_64')
url='https://github.com/riverwm/river'
license=('GPL3')
depends=('libevdev'
'libxkbcommon'
'mesa'
'pixman'
'wayland'
'wlroots0.16')
makedepends=('scdoc'
'wayland-protocols'
'zig')
optdepends=('polkit: access seat through systemd-logind')
source=("https://github.com/riverwm/river/releases/download/v$pkgver/river-$pkgver.tar.gz"{,.sig})
validpgpkeys=('5FBDF84DD2278DB2B8AD8A5286DED400DDFD7A11') # Isaac Freund <mail@isaacfreund.com>
sha256sums=('SKIP'
'a63aafd77572aeebf5e040cf771bcf1989a13952c068aa357f51223588e0e24a')
provides=('river')
conflicts=('river')
build() {
cd "river-$pkgver"
export PKG_CONFIG_PATH='/usr/lib/wlroots0.16/pkgconfig'
DESTDIR="build" zig build \
--prefix /usr \
--search-prefix /usr \
-Dcpu=native \
-Dpie \
-Doptimize=ReleaseSafe
}
check() {
cd "river-$pkgver"
zig build test \
--prefix /usr \
--search-prefix /usr \
-Dcpu=native \
-Dpie \
-Doptimize=ReleaseSafe
}
package() {
depends+=(libwlroots.so=11)
cd "river-$pkgver"
cp -a build/* "$pkgdir"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 contrib/river.desktop -t "$pkgdir/usr/share/wayland-sessions"
install -d "$pkgdir/usr/share/$pkgname"
cp -a example "$pkgdir/usr/share/$pkgname"
}
|