Package Details: ccusage 20.0.20-1

Git Clone URL: https://aur.archlinux.org/ccusage.git (read-only, click to copy)
Package Base: ccusage
Description: Analyze coding agent CLI token usage and costs from local data
Upstream URL: https://github.com/ryoppippi/ccusage
Licenses: MIT
Submitter: ggilestro
Maintainer: ggilestro (lapsus)
Last Packager: lapsus
Votes: 6
Popularity: 0.97
First Submitted: 2025-06-24 20:28 (UTC)
Last Updated: 2026-08-16 14:13 (UTC)

Latest Comments

huyz commented on 2026-05-24 04:55 (UTC)

ccusage native binary is not executable: EPERM: operation not permitted, chmod '/usr/lib/node_modules/ccusage/node_modules/@ccusage/ccusage-linux-x64/bin/ccusage'

Also, since the native binary is already rewritten in Rust, only that binary needs to be packaged, and can be compiled from source, like this:

pkgname=ccusage
pkgver=20.0.4
pkgrel=1
pkgdesc='Analyze coding (agent) CLI token usage and costs from local data. (Rust binary only)'
arch=('x86_64' 'aarch64')
url='https://github.com/ryoppippi/ccusage'
license=('MIT')
depends=('gcc-libs')
makedepends=('cargo')
options=('!lto')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('d007e8116a03cd19fd74ef39ff9f965b2b269d46cbad9cddf2c583bc22f320bc')

build() {
    cd "${pkgname}-${pkgver}/rust"

    cargo build --release
}

package() {
    cd "${pkgname}-${pkgver}"

    install -Dm755 rust/target/release/ccusage "${pkgdir}/usr/bin/ccusage"
    install -Dm644 apps/ccusage/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 apps/ccusage/README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}