mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 20:52:55 +01:00
init
This commit is contained in:
commit
22dbd668ad
2 changed files with 59 additions and 0 deletions
16
.SRCINFO
Normal file
16
.SRCINFO
Normal file
|
|
@ -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
|
||||
43
PKGBUILD
Normal file
43
PKGBUILD
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# Maintainer: ThatOneCalculator (Kainoa Kanter) <kainoa@t1c.dev>
|
||||
_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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue