dbar
LOW
maintainer dusanb
1 votes
scanned 2026-09-14 17:17:35.691721
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Dusan Borovcanin <borovcanindusan1@gmail.com>
2
3
# Built from the tagged source. `dbar-bin` repackages the same release's
4
# prebuilt binary for anyone who would rather not compile.
5
#
6
# pkgver and sha256sums are rewritten by scripts/aur-publish.sh when a tag is
7
# released, so the copy in the repository always describes a real release
8
# rather than a placeholder nobody can build.
9
10
pkgname=dbar
11
pkgver=0.6.0
12
pkgrel=1
13
pkgdesc="A small, event-driven Wayland status bar for Sway and SwayFX"
14
arch=('x86_64' 'aarch64')
15
url="https://github.com/dborovcanin/dbar"
16
license=('Apache-2.0')
17
# What the linker actually recorded: readelf -d names libpipewire, libgcc and
18
# libc, and nothing else. Wayland and xkbcommon are build-time probes - the
19
# Wayland protocol is spoken by dbar's own code rather than through libwayland.
20
# Exactly what readelf -d records, and no more: libpipewire-0.3.so, libgcc_s.so
21
# and libc. `gcc-libs` would name the same libgcc_s through a metapackage that
22
# also drags in libasan, libtsan, libobjc and libgfortran, none of which dbar
23
# links against.
24
depends=('glibc' 'libgcc' 'libpipewire')
25
makedepends=('cargo' 'clang' 'pkgconf' 'wayland' 'libxkbcommon')
26
optdepends=(
27
'noto-fonts: the default font family and the Latin fallback'
28
'noto-fonts-emoji: colour emoji in window titles and track names'
29
'noto-fonts-cjk: Chinese, Japanese and Korean window titles'
30
'ttf-nerd-fonts-symbols: Nerd Font glyphs in workspace names'
31
'sway: the compositor dbar reads workspaces and window titles from'
32
)
33
# The release profile already strips, so there are no symbols to split out.
34
options=('!debug')
35
provides=("dbar=$pkgver")
36
conflicts=('dbar-bin' 'dbar-git')
37
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
38
sha256sums=('8645398ba8ae209a77d6c89dbf7a71791997fd36a2567d299a584a85fb24be0f')
39
40
prepare() {
41
cd "$pkgname-$pkgver"
42
export RUSTUP_TOOLCHAIN=stable
43
# Vendor everything now so build() and check() can run with --frozen and
44
# touch the network at no point after this.
45
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
46
}
47
48
build() {
49
cd "$pkgname-$pkgver"
50
export RUSTUP_TOOLCHAIN=stable
51
export CARGO_TARGET_DIR=target
52
cargo build --frozen --release
53
}
54
55
check() {
56
cd "$pkgname-$pkgver"
57
export RUSTUP_TOOLCHAIN=stable
58
export CARGO_TARGET_DIR=target
59
# The suite parses every shipped example and uses a stub text measurer, so it
60
# needs neither a compositor nor this machine's hardware.
61
cargo test --frozen --release
62
}
63
64
package() {
65
cd "$pkgname-$pkgver"
66
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
67
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
68
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
69
install -Dm644 spec.md "$pkgdir/usr/share/doc/$pkgname/spec.md"
70
# examples/config.toml is the compiled-in default; the rest are themes and
71
# the two scripts the command examples point at.
72
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/examples" examples/*.toml
73
install -Dm755 -t "$pkgdir/usr/share/doc/$pkgname/examples" examples/*.sh
74
}
75
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-14 17:17:35 | Low | 1 |