Hi,

AUR registration is closed, so I'm looking for someone to upload a package for 
us and hand it over once signups reopen (transfer or co-maintainer, whichever 
you prefer).

nodecode is an AI coding agent written in Common Lisp that runs as a live SBCL 
image. nodecode-bin packages the prebuilt x86_64 release: https://nodecode.ai/, 
source at https://github.com/nodecode-ai/nodecode (MIT, and the name is not 
taken on the AUR).

The PKGBUILD is below. Both sha256 sums are the ones published with the 
release, makepkg --printsrcinfo gives the .SRCINFO, and it builds in a few 
seconds in a clean Arch container. namcap is clean apart from the usual 
ELF-under-/opt note, since the binary reads its definitions and cell folders 
from beside itself.

# Maintainer: Foresight Labs <[email protected]>

pkgname=nodecode-bin
pkgver=0.1.19
_build=c4e35b465
pkgrel=1
pkgdesc='Open-source AI coding agent written in Common Lisp (live SBCL image)'
arch=('x86_64')
url='https://nodecode.ai/'
license=('MIT')
depends=('glibc' 'openssl-3' 'sqlite' 'ca-certificates' 'git' 'python')
optdepends=('python-pillow: table images drawn by the channel cells')
provides=('nodecode')
conflicts=('nodecode')
# The executable is an SBCL runtime with its core appended: stripping it
# removes the core, so it must stay as shipped.
options=('!strip' '!debug')
source=("LICENSE-${pkgver}::https://raw.githubusercontent.com/nodecode-ai/nodecode/v${pkgver}/LICENSE";)
source_x86_64=("https://github.com/nodecode-ai/nodecode/releases/download/v${pkgver}/nodecode-${_build}-x86_64-linux.tar.gz";)
sha256sums=('74c3dd756dde04310ebc7b534cc23b9c06f0fb0d833e475e826cc9f97169ded1')
sha256sums_x86_64=('ef9f4884071cf97c7100328ef2aa2ff1d8e33418f6f890105c9f3d53250103b0')

package() {
  cd "nodecode-${_build}-${CARCH}-linux"

  install -Dm755 nodecode "${pkgdir}/opt/nodecode/nodecode"
  cp -a --no-preserve=ownership src "${pkgdir}/opt/nodecode/src"

  install -dm755 "${pkgdir}/usr/bin"
  ln -s /opt/nodecode/nodecode "${pkgdir}/usr/bin/nodecode"

  install -Dm644 README.txt "${pkgdir}/usr/share/doc/${pkgname}/README.txt"
  install -Dm644 "${srcdir}/LICENSE-${pkgver}" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

Thanks to whoever takes it. We'll keep the PKGBUILD current upstream and can 
send updates here.

Thomas
Foresight Labs, [email protected]

Reply via email to