darwan
LOW
maintainer mah3uz
0 votes
scanned 2026-09-26 21:15:27.200055
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: Mahfuz Shaikh <mah3uz at gmail dot com>
2
3
pkgname=darwan
4
pkgver=0.1.0
5
pkgrel=1
6
pkgdesc='Themes for the SDDM login screen and the Quickshell lockscreen, with a CLI, TUI and GUI'
7
arch=('x86_64')
8
url='https://github.com/mah3uz/darwan'
9
license=('GPL-3.0-only')
10
depends=(
11
'gcc-libs'
12
'glibc'
13
'polkit'
14
'qt6-5compat'
15
'qt6-base'
16
'qt6-declarative'
17
'qt6-multimedia'
18
'qt6-multimedia-ffmpeg'
19
'quickshell'
20
'ttf-jetbrains-mono-nerd'
21
)
22
makedepends=('cargo' 'librsvg' 'lld')
23
optdepends=(
24
'sddm: use the themes on the login screen'
25
'libfaketime: darwan preview --at'
26
'noto-fonts-cjk: Chinese text in the Genshin theme'
27
)
28
# makepkg's -flto turns cxx-qt's C++ into GCC LTO objects that the Rust link can't resolve.
29
options=('!lto')
30
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
31
sha256sums=('bf3ab003c94aed64583dab63a7d38428dc12e2c8477decfcf203dc9d2383b45c')
32
33
prepare() {
34
cd "$pkgname-$pkgver"
35
export RUSTUP_TOOLCHAIN=stable
36
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
37
}
38
39
build() {
40
cd "$pkgname-$pkgver"
41
export RUSTUP_TOOLCHAIN=stable
42
export CARGO_TARGET_DIR=target
43
# cxx-qt's headers use __FILE__; keep the build directory out of the binary.
44
export CXXFLAGS+=" -ffile-prefix-map=$srcdir=/usr/src/debug/$pkgname"
45
cargo build --frozen --release --workspace
46
}
47
48
check() {
49
cd "$pkgname-$pkgver"
50
export RUSTUP_TOOLCHAIN=stable
51
export CARGO_TARGET_DIR=target
52
export QT_QPA_PLATFORM=offscreen
53
cargo test --frozen --release --workspace
54
}
55
56
package() {
57
cd "$pkgname-$pkgver"
58
install -Dm755 target/release/darwan target/release/darwan-gui -t "$pkgdir/usr/bin"
59
install -Dm755 target/release/darwan-helper -t "$pkgdir/usr/lib/darwan"
60
install -d "$pkgdir/usr/share/darwan"
61
cp -r --no-preserve=ownership runtime themes "$pkgdir/usr/share/darwan/"
62
install -Dm644 packaging/arch/org.darwan.policy -t "$pkgdir/usr/share/polkit-1/actions"
63
install -Dm644 packaging/arch/darwan.desktop -t "$pkgdir/usr/share/applications"
64
install -Dm644 packaging/arch/darwan.svg -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"
65
# Launchers that can't render SVG, or render it without its filters, need fixed-size PNGs.
66
for size in 16 22 24 32 48 64 128 256 512; do
67
install -d "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps"
68
rsvg-convert -w "$size" -h "$size" packaging/arch/darwan.svg \
69
-o "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/darwan.png"
70
done
71
install -Dm644 docs/*.md -t "$pkgdir/usr/share/doc/darwan"
72
}
73
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-26 21:15:27 | Low | 1 |