Files
opencode/PKGBUILD
2025-06-20 22:36:33 +09:00

25 lines
664 B
Bash

# Maintainer: Adrià Arrufat A <swiftscythe@gmail.com>
pkgname=opencode
pkgver=0.0.53
pkgrel=1
pkgdesc='A powerful AI coding agent. Built for the terminal.'
arch=('x86_64' 'aarch64')
url='https://github.com/opencode-ai/${pkgname}'
license=('MIT')
makedepends=('go')
source=("https://github.com/opencode-ai/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('53e23c62284a50c38fd664de441b6db540fa5c944358fffd319f548ee504cb84')
build() {
cd ${pkgname}-${pkgver}
go build
}
package() {
cd ${pkgname}-${pkgver}
install -Dm755 opencode "${pkgdir}/usr/bin/opencode"
install -D LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}