blob: bbce43578afce9f7e34fdcbcf6f7b3824a96e86a (
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
|
# Maintainer: NihilDigit <starse.nd233@gmail.com>
pkgname=waybar-ai-usage
pkgver=0.8.2
pkgrel=1
pkgdesc='Monitor Claude Code, OpenAI Codex CLI, and GitHub Copilot usage in Waybar'
arch=('any')
url='https://github.com/NihilDigit/waybar-ai-usage'
license=('MIT')
install=waybar-ai-usage.install
depends=(
'python'
'python-browser-cookie3'
'python-curl_cffi'
'curl-impersonate'
'python-json-five'
'python-sly'
)
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-hatchling')
source=("waybar-ai-usage-${pkgver}.tar.gz::https://api.github.com/repos/NihilDigit/waybar-ai-usage/tarball/refs/tags/v${pkgver}")
sha256sums=('92114aece71fb7dffa8b3e0d859b20d74e58b7b7a2c178a297ebb1ef3df91078')
_srcdir() {
find "${srcdir}" -maxdepth 1 -type d -name "NihilDigit-waybar-ai-usage-*" | head -n 1
}
build() {
cd "$(_srcdir)"
python -m build --wheel --no-isolation
}
package() {
cd "$(_srcdir)"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|