aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wob/APKBUILD
blob: d69032b9050bbd1363d420dcb3c4b743a4c89b72 (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
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=wob
pkgver=0.4
_wlr_commit=59497d93794efac39d8c85b1d964ad8a461cbeb6 # git hash for wlr-protocols
pkgrel=0
pkgdesc="A lightweight overlay volume/backlight/progress/anything bar for Wayland."
url="https://github.com/francma/wob"
arch="all"
license="ISC"
makedepends="meson git wayland-protocols wayland-dev"
source="
	wob-$pkgver.tar.gz::https://github.com/francma/wob/archive/$pkgver.tar.gz
	wlr-protocols-$_wlr_commit.tar.gz::https://github.com/swaywm/wlr-protocols/archive/$_wlr_commit.tar.gz
	"

prepare() {
	default_prepare
	mv "$srcdir/wlr-protocols-$_wlr_commit"/* "$builddir"/wlr-protocols
}

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		build-release
	ninja -C build-release
}

check() {
	ninja -C build-release test
}

package() {
	DESTDIR="$pkgdir" ninja -C build-release install
}
sha512sums="01222db5eee86ec2c9312e1eed00e491810317f78e11b4066494fd98270c31ed2fabe30e466ed0bccf3daee9c30f749c7ea956b46349a7a8ba4104d95549280f  wob-0.4.tar.gz
7782c52d250dcda1b224dd8beca266392460e5622a53893ea81b578a0ff59e7e4e5ab7268b4db092e8da7ed50c209daece9b53bfd6ba834ad0a8e6a719cb69a7  wlr-protocols-59497d93794efac39d8c85b1d964ad8a461cbeb6.tar.gz"