# Maintainer: DeusData <https://github.com/DeusData>
pkgname=codebase-memory-mcp
pkgver=0.6.0
pkgrel=1
pkgdesc="Fast code intelligence engine for AI coding agents — single static binary MCP server"
arch=('x86_64' 'aarch64')
url="https://github.com/DeusData/codebase-memory-mcp"
license=('MIT')
provides=("$pkgname")
conflicts=("$pkgname")

source_x86_64=("${pkgname}-${pkgver}-linux-amd64.tar.gz::https://github.com/DeusData/codebase-memory-mcp/releases/download/v${pkgver}/codebase-memory-mcp-linux-amd64.tar.gz")
source_aarch64=("${pkgname}-${pkgver}-linux-arm64.tar.gz::https://github.com/DeusData/codebase-memory-mcp/releases/download/v${pkgver}/codebase-memory-mcp-linux-arm64.tar.gz")

sha256sums_x86_64=('0dfd70f73337219925f3ec6a572fe776dbbe1c4c8c6ab546ab214fe16e56a426')
sha256sums_aarch64=('f1fad27262fe7af4a356af128e43942355cb2189491079b6790ecc5ae3af069c')

package() {
    install -Dm755 "${srcdir}/codebase-memory-mcp" \
        "${pkgdir}/usr/bin/codebase-memory-mcp"
    install -Dm644 "${srcdir}/LICENSE" \
        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
