blob: 8f3409c69c04e2f5242ddafffa774612ac7d4d3b (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: 古方元水 <ye@archlinux>
# Contributor: 糯米狐 <nuomihu@archlinux>
pkgname=hanako-bin
pkgver=0.447.4
pkgrel=1
pkgdesc="HanaAgent - a personal AI agent with memory and soul"
arch=('x86_64')
url="https://github.com/liliMozi/openhanako"
license=('Apache-2.0')
depends=(
'gtk3'
'libnotify'
'nss'
'libxss'
'libxtst'
'libxkbcommon'
'libxrandr'
'libxcomposite'
'libxdamage'
'libxfixes'
'libxext'
'libxrender'
'xdg-utils'
'at-spi2-core'
'libsecret'
'cups'
'mesa'
'egl-wayland'
'dbus'
)
optdepends=(
'pipewire: audio support'
'pulseaudio: audio support (fallback)'
'libappindicator-gtk3: system tray indicator'
)
options=('!strip')
provides=('hanako')
conflicts=('hanako')
source=("https://github.com/liliMozi/openhanako/releases/download/v${pkgver}/HanaAgent-${pkgver}-Linux-amd64.deb")
sha512sums=('c842cb2c3fd0dfee0a346318cb4486c850060d87c6591638b38597594b7761545bb634b2d58ddf575940ac56e11a202500ab8937286625afb71d744f805e3c43')
prepare() {
cd "${srcdir}"
# Extract deb archive
ar x "HanaAgent-${pkgver}-Linux-amd64.deb"
}
package() {
cd "${srcdir}"
# Extract all files from deb's data.tar.xz
tar xJf data.tar.xz -C "${pkgdir}"
# CLI wrapper
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/hanako" << 'BINEOF'
#!/bin/sh
exec /opt/HanaAgent/hanako "$@"
BINEOF
# Arch uses user namespaces for sandbox, no SUID needed
chmod 0755 "${pkgdir}/opt/HanaAgent/chrome-sandbox"
# AppArmor profile doesn't apply on Arch
rm -f "${pkgdir}/opt/HanaAgent/resources/apparmor-profile"
}
|