Sync claude-code packaging
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Maintainer: Christopher Cooper <christopher@cg505.com>
|
# Maintainer: Christopher Cooper <christopher@cg505.com>
|
||||||
# Maintainer: Jérôme Poulin <jeromepoulin@gmail.com>
|
# Maintainer: Jérôme Poulin <jeromepoulin@gmail.com>
|
||||||
|
# Maintainer: Fabio Fontana (fabifont) <me@fabifont.dev>
|
||||||
|
|
||||||
pkgname=claude-code
|
pkgname=claude-code
|
||||||
pkgver=2.1.126
|
pkgver=2.1.126
|
||||||
pkgrel=2
|
pkgrel=2
|
||||||
@@ -10,6 +12,7 @@ license=('LicenseRef-claude-code')
|
|||||||
depends=('bash')
|
depends=('bash')
|
||||||
# Binary is a self-contained Bun executable with embedded JS/resources - stripping breaks it
|
# Binary is a self-contained Bun executable with embedded JS/resources - stripping breaks it
|
||||||
options=('!strip')
|
options=('!strip')
|
||||||
|
|
||||||
optdepends=(
|
optdepends=(
|
||||||
'git: allow Claude to use git'
|
'git: allow Claude to use git'
|
||||||
'github-cli: interact with GitHub'
|
'github-cli: interact with GitHub'
|
||||||
@@ -31,11 +34,11 @@ sha256sums_aarch64=('88a6dca613a40559f3bac8a946a2ec6e60a870b91938d3df93dcac1dec4
|
|||||||
package() {
|
package() {
|
||||||
install -Dm755 "${srcdir}/claude-${pkgver}-${CARCH}" "${pkgdir}/opt/claude-code/bin/claude"
|
install -Dm755 "${srcdir}/claude-${pkgver}-${CARCH}" "${pkgdir}/opt/claude-code/bin/claude"
|
||||||
|
|
||||||
# Create wrapper script to disable autoupdater
|
# Create wrapper script to disable upstream update paths
|
||||||
install -dm755 "${pkgdir}/usr/bin"
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
cat > "${pkgdir}/usr/bin/claude" << 'EOF'
|
cat > "${pkgdir}/usr/bin/claude" << 'EOF'
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export DISABLE_AUTOUPDATER=1
|
export DISABLE_UPDATES=1
|
||||||
exec /opt/claude-code/bin/claude "$@"
|
exec /opt/claude-code/bin/claude "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod 755 "${pkgdir}/usr/bin/claude"
|
chmod 755 "${pkgdir}/usr/bin/claude"
|
||||||
|
|||||||
Reference in New Issue
Block a user