summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d17a4844605090028671471663b5c612c97a768c (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
# Maintainer: Delfour.co <contact@delfour.co>
pkgname=gnome-shell-extension-claude-pulse
pkgver=1.3.0
pkgrel=1
pkgdesc="Real-time Claude Code agent monitoring for GNOME Shell"
arch=('any')
url="https://github.com/delfour-co/claude-pulse"
license=('MIT')
depends=('gnome-shell>=45' 'jq')
makedepends=('glib2')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/delfour-co/claude-pulse/archive/v${pkgver}.tar.gz")
sha256sums=('2c565dab53f6e52186686743f60da0763c8adee07eae743196770a711eef72e5')

_uuid="claude-pulse@delfour.co"

build() {
    cd "claude-pulse-${pkgver}"
    glib-compile-schemas extension/schemas/
}

package() {
    cd "claude-pulse-${pkgver}"

    install -d "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"
    cp -r extension/* "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/"

    install -Dm755 hooks/claude-pulse-hook.sh "${pkgdir}/usr/bin/claude-pulse-hook.sh"
    install -Dm755 hooks/compute-cost.sh "${pkgdir}/usr/bin/claude-pulse-compute-cost.sh"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}