mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 20:52:55 +01:00
automatically disable autoupdater
This commit is contained in:
parent
1fd74f2c86
commit
4e63f30650
2 changed files with 4 additions and 2 deletions
2
.SRCINFO
2
.SRCINFO
|
|
@ -1,7 +1,7 @@
|
|||
pkgbase = claude-code
|
||||
pkgdesc = An agentic coding tool that lives in your terminal
|
||||
pkgver = 2.0.33
|
||||
pkgrel = 2
|
||||
pkgrel = 3
|
||||
url = https://github.com/anthropics/claude-code
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
|
|
|
|||
4
PKGBUILD
4
PKGBUILD
|
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Jérôme Poulin <jeromepoulin@gmail.com>
|
||||
pkgname=claude-code
|
||||
pkgver=2.0.33
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="An agentic coding tool that lives in your terminal"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/anthropics/claude-code"
|
||||
|
|
@ -35,6 +35,8 @@ package() {
|
|||
#!/bin/sh
|
||||
# Wrapper to prevent claude from detecting /usr/bin/claude as npm-global installation
|
||||
export NPM_CONFIG_PREFIX="${NPM_CONFIG_PREFIX:-/nonexistent}"
|
||||
# Disable autoupdater
|
||||
export DISABLE_AUTOUPDATER=1
|
||||
exec /opt/claude-code/bin/claude "$@"
|
||||
EOF
|
||||
chmod 755 "${pkgdir}/usr/bin/claude"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue