blob: 4ce1abcd2c30aac0002f69ca18c43c4a3e660eaf (
plain)
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
44
45
46
47
48
49
|
# Maintainer: Supernovatux <thulashitharan.d at gmail dot com>
_pkgname=crab-on-desk
pkgname="${_pkgname}-git"
pkgver=r0.0000000
pkgrel=2
pkgdesc="A rust based pet for coding agents."
arch=('x86_64')
url="https://github.com/Supernovatux/${_pkgname}"
license=('AGPL-3.0-or-later')
depends=('gcc-libs' 'glibc' 'wayland' 'libglvnd' 'libxkbcommon'
'libxcb' 'libx11' 'libxcursor' 'libxrandr' 'libxi' 'libxkbcommon-x11')
makedepends=('git' 'cargo' 'cmake' 'clang')
options=('!lto')
optdepends=('crab-on-desk-themes: Themes from rullerzhou-afk/clawd-on-desk ported for this proj'
'hyprland: cursor tracking (roam, dizzy, eye tracking), permission prompt placement and focusing the terminal from it'
'kwin: cursor tracking (roam, dizzy, eye tracking) and permission prompt placement on KDE Plasma (Wayland)'
'gnome-shell: GNOME Wayland support (the crab-on-desk shell extension is installed with this package)'
'picom: per-pixel transparency on X11 window managers that do not composite themselves'
'xdg-desktop-portal: system accent colour and light/dark scheme in the settings and permission windows'
'claude-code: the agent whose hooks drive the pet')
install="${_pkgname}.install"
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_pkgname}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc --print host-tuple)"
}
build() {
cd "${_pkgname}"
export RUSTUP_TOOLCHAIN=stable
make CARGO_FLAGS=--frozen
}
package() {
cd "${_pkgname}"
export RUSTUP_TOOLCHAIN=stable
make PREFIX=/usr DESTDIR="${pkgdir}" CARGO_FLAGS=--frozen install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|