From 22dbd668ada27a123750acd4f5a27fefabdd26fc Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Tue, 16 Dec 2025 13:28:19 -0800 Subject: [PATCH] init --- .SRCINFO | 16 ++++++++++++++++ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5f50c1300476 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = letta-code + pkgdesc = The memory-first coding agent + pkgver = 0.6.2 + pkgrel = 1 + url = https://github.com/letta-ai/letta-code + arch = x86_64 + arch = aarch64 + license = Apache-2.0 + depends = nodejs + conflicts = letta-code-bin + conflicts = letta-code-git + options = !strip + source = letta-code-0.6.2.tar.gz::https://github.com/letta-ai/letta-code/archive/v0.6.2.tar.gz + sha256sums = 0abfafac22d466fff90c5cc84e70ade8db4efd355dadaa6769cc9308457f6559 + +pkgname = letta-code diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..513bc0601346 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: ThatOneCalculator (Kainoa Kanter) +_pkgname="letta-code" +pkgname="$_pkgname" +pkgver=0.6.2 +pkgrel=1 +pkgdesc="The memory-first coding agent" +arch=('x86_64' 'aarch64') +url="https://github.com/letta-ai/letta-code" +license=('Apache-2.0') +depends=('nodejs') +conflicts=( + # "$_pkgname" + "$_pkgname-bin" + "$_pkgname-git" +) +source=("$_pkgname-$pkgver.tar.gz::$url/archive/v"$pkgver".tar.gz") +noextract=() +options=(!strip) +sha256sums=('0abfafac22d466fff90c5cc84e70ade8db4efd355dadaa6769cc9308457f6559') + +prepare() { + if ! command -v bun &> /dev/null; then + echo "Bun was not found. Please install bun from https://bun.sh, or install the bun-bin or bun-git AUR package." + exit 1 + fi + bunversion=$(bun --version | sed 's/[^0-9]*//g') + if (( $bunversion < 1022 )); then + echo "Upgrading bun" + bun upgrade + fi +} + +package() { + cd "${_pkgname}-${pkgver}" + bun install + bun run build + install -Dm755 ./bin/letta.js "$pkgdir/usr/bin/letta" + if [[ "$CARCH" == "aarch64" ]]; then + install -Dm755 ./letta.js "$pkgdir/usr/bin/letta-linux-arm64" + elif [[ "$CARCH" == "x86_64" ]]; then + install -Dm755 ./letta.js "$pkgdir/usr/bin/letta-linux-x64" + fi +}