aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wldash/APKBUILD
blob: bfe021c389852d90d5f79f60a6a01ef09fe182bc (plain) (blame)
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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=wldash
pkgver=0.2_git20210902
_gitrev=5e5e8876f6dbecaf508045f400b63097ddccef6b
pkgrel=0
pkgdesc="Wayland dashboard/launcher/thing"
url="https://github.com/kennylevinsen/wldash"
arch="aarch64 armhf armv7 ppc64le x86 x86_64"  # limited by rust/cargo
license="GPL-3.0"
makedepends="
	alsa-lib-dev
	cargo
	dbus-dev
	fontconfig-dev
	pulseaudio-dev
	wayland-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/kennylevinsen/wldash/archive/$_gitrev/$pkgname-$_gitrev.tar.gz
	minimize-size.patch
	"
builddir="$srcdir/$pkgname-$_gitrev"

build() {
	cargo build --release --locked
}

check() {
	cargo test --locked
}

package() {
	cargo install --locked --path . --root="$pkgdir/usr"
	rm "$pkgdir"/usr/.crates*

	install -D -m644 config.yaml -t "$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="
19ed56c947baf4fd2e5e263551300d55b5cbd5564d601943bc05646b8af53b1bb0af1e8212d19c326f0c2df020928638fbd5caaba341e9c33e75c8ac7d301fd0  wldash-5e5e8876f6dbecaf508045f400b63097ddccef6b.tar.gz
6d02ca7e1d52c7523f9317a9277b8cd634bf4d19bfb4280547cc44705f341cc86bcb0bb2d0e31b820ca43f3be7acdc32ccf443a17afaca1f22325b5d69f544d8  minimize-size.patch
"