hypr-taskspace

LOW
maintainer jsimonrichard 0 votes scanned 2026-08-24 01:21:42.645556
View on AUR
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>
2pkgname=hypr-taskspace
3pkgver=0.1.0
4pkgrel=1
5pkgdesc="Task-centric Hyprland control plane with Omarchy and Waybar integration"
6arch=('x86_64' 'aarch64')
7url="https://github.com/jsimonrichard/hypr-taskspace"
8license=('MIT')
9depends=('gcc-libs' 'glibc' 'gtk3' 'hyprland')
10makedepends=('cargo' 'pkgconf')
11optdepends=(
12 'waybar: CFFI taskspace/workspace module'
13 'chromium: helper extension for tab restore'
14)
15options=(!strip !lto)
16install="$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
21if [[ -z ${TSK_AUR_PKGBUILD:-} && -f "$startdir/install-share.sh" ]]; then
22 _aur=0
23fi
24
25# sha256 of the v$pkgver GitHub archive
26_aur_sha256='6b98426b11c96d1631bf6dba554dc99577335374064d79982201aa28cf15c5e7'
27
28source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
29sha256sums=("$_aur_sha256")
30if (( !_aur )); then
31 source=()
32 sha256sums=()
33fi
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
58prepare() {
59 cd "$(_src_root)"
60 _cargo_env
61 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
62}
63
64build() {
65 cd "$(_src_root)"
66 _cargo_env
67 cargo build --frozen --release -p tsk-cli -p tsk-waybar
68}
69
70package() {
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)SeverityRules
2026-08-24 01:21:42 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion