# Maintainer: DeusData <https://github.com/DeusData>
pkgname=codebase-memory-mcp
pkgver=0.6.1
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=('a24c04fd1fd61b08158e011685cf08d860e3594e4ce057ffda57d1cc2f4afdd1')
sha256sums_aarch64=('29811aadc2aa99fb9612683af30a06d03fcb2bfefb95c12ea672671827bd111c')

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