hypr-taskspace
LOW
maintainer jsimonrichard
0 votes
scanned 2026-08-24 01:21:42.645556
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: J. Simon Richard <jsimonrichard@gmail.com>
2
pkgname=hypr-taskspace
3
pkgver=0.1.0
4
pkgrel=1
5
pkgdesc="Task-centric Hyprland control plane with Omarchy and Waybar integration"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/jsimonrichard/hypr-taskspace"
8
license=('MIT')
9
depends=('gcc-libs' 'glibc' 'gtk3' 'hyprland')
10
makedepends=('cargo' 'pkgconf')
11
optdepends=(
12
'waybar: CFFI taskspace/workspace module'
13
'chromium: helper extension for tab restore'
14
)
15
options=(!strip !lto)
16
install="$pkgname.install"
17
18
# If this PKGBUILD sits next to install-share.sh (git checkout), build that tree
19
# instead of the GitHub tarball. Set TSK_AUR_PKGBUILD=1 to force the tarball.
20
_aur=1
21
if [[ -z ${TSK_AUR_PKGBUILD:-} && -f "$startdir/install-share.sh" ]]; then
22
_aur=0
23
fi
24
25
# sha256 of the v$pkgver GitHub archive
26
_aur_sha256='6b98426b11c96d1631bf6dba554dc99577335374064d79982201aa28cf15c5e7'
27
28
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
29
sha256sums=("$_aur_sha256")
30
if (( !_aur )); then
31
source=()
32
sha256sums=()
33
fi
34
35
_src_root() {
36
if (( !_aur )); then
37
( cd "$startdir/../.." && pwd )
38
return
39
fi
40
local d
41
for d in "$srcdir/$pkgname-$pkgver" "$srcdir/$pkgname-v$pkgver"; do
42
if [[ -d $d ]]; then
43
printf '%s\n' "$d"
44
return
45
fi
46
done
47
echo "Cannot find extracted sources in $srcdir" >&2
48
return 1
49
}
50
51
_cargo_env() {
52
export RUSTUP_TOOLCHAIN=stable
53
export CARGO_TARGET_DIR="$startdir/target"
54
# makepkg CFLAGS/LDFLAGS (-flto=auto, --as-needed) break bundled libsqlite3-sys linking
55
unset CFLAGS CXXFLAGS LDFLAGS RUSTFLAGS
56
}
57
58
prepare() {
59
cd "$(_src_root)"
60
_cargo_env
61
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
62
}
63
64
build() {
65
cd "$(_src_root)"
66
_cargo_env
67
cargo build --frozen --release -p tsk-cli -p tsk-waybar
68
}
69
70
package() {
71
local root
72
root="$(_src_root)"
73
_cargo_env
74
75
install -Dm755 "$CARGO_TARGET_DIR/release/tsk" "$pkgdir/usr/bin/tsk"
76
install -Dm755 "$CARGO_TARGET_DIR/release/libtsk_waybar.so" \
77
"$pkgdir/usr/share/tsk/lib/libtsk_waybar.so"
78
79
bash "$root/packaging/arch/install-share.sh" "$pkgdir" "$root"
80
81
install -Dm644 "$root/packaging/arch/90-hypr-taskspace-reload.hook" \
82
"$pkgdir/usr/share/libalpm/hooks/90-hypr-taskspace-reload.hook"
83
install -Dm755 "$root/packaging/arch/reload-hyprland.sh" \
84
"$pkgdir/usr/share/libalpm/scripts/hypr-taskspace-reload-hyprland"
85
install -Dm644 "$root/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
86
}
87
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-24 01:21:42 | Low | 1 |