Remove opencode since it's on extras now
This commit is contained in:
3 files changed
-100
No files matched your search
@@ -1,20 +0,0 @@
|
|||||||
pkgbase = opencode
|
|
||||||
pkgdesc = The AI coding agent built for the terminal.
|
|
||||||
pkgver = 1.1.49
|
|
||||||
pkgrel = 1
|
|
||||||
url = https://github.com/anomalyco/opencode
|
|
||||||
arch = aarch64
|
|
||||||
arch = x86_64
|
|
||||||
license = MIT
|
|
||||||
makedepends = git
|
|
||||||
makedepends = bun
|
|
||||||
makedepends = go
|
|
||||||
depends = ripgrep
|
|
||||||
provides = opencode
|
|
||||||
conflicts = opencode-bin
|
|
||||||
options = !debug
|
|
||||||
options = !strip
|
|
||||||
source = opencode-1.1.49.tar.gz::https://github.com/anomalyco/opencode/archive/v1.1.49.tar.gz
|
|
||||||
sha256sums = SKIP
|
|
||||||
|
|
||||||
pkgname = opencode
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# Maintainer: dax
|
|
||||||
# Maintainer: adam
|
|
||||||
|
|
||||||
pkgname='opencode'
|
|
||||||
pkgver=1.1.49
|
|
||||||
_subver=
|
|
||||||
options=('!debug' '!strip')
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc='The AI coding agent built for the terminal.'
|
|
||||||
url='https://github.com/anomalyco/opencode'
|
|
||||||
arch=('aarch64' 'x86_64')
|
|
||||||
license=('MIT')
|
|
||||||
provides=('opencode')
|
|
||||||
conflicts=('opencode-bin')
|
|
||||||
depends=('ripgrep')
|
|
||||||
makedepends=('git' 'bun' 'go')
|
|
||||||
|
|
||||||
source=("opencode-${pkgver}.tar.gz::https://github.com/anomalyco/opencode/archive/v${pkgver}${_subver}.tar.gz")
|
|
||||||
sha256sums=('SKIP')
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd "opencode-${pkgver}"
|
|
||||||
# Change strict bun version check to >= comparison
|
|
||||||
sed -i 's/process\.versions\.bun !== expectedBunVersion/process.versions.bun.localeCompare(expectedBunVersion, undefined, {numeric: true}) < 0/' packages/script/src/index.ts
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "opencode-${pkgver}"
|
|
||||||
bun install
|
|
||||||
cd ./packages/opencode
|
|
||||||
OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.1.49 bun run ./script/build.ts --single
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "opencode-${pkgver}/packages/opencode"
|
|
||||||
mkdir -p "${pkgdir}/usr/bin"
|
|
||||||
target_arch="x64"
|
|
||||||
case "$CARCH" in
|
|
||||||
x86_64) target_arch="x64" ;;
|
|
||||||
aarch64) target_arch="arm64" ;;
|
|
||||||
*) printf "unsupported architecture: %s\n" "$CARCH" >&2 ; return 1 ;;
|
|
||||||
esac
|
|
||||||
libc=""
|
|
||||||
if command -v ldd >/dev/null 2>&1; then
|
|
||||||
if ldd --version 2>&1 | grep -qi musl; then
|
|
||||||
libc="-musl"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ -z "$libc" ] && ls /lib/ld-musl-* >/dev/null 2>&1; then
|
|
||||||
libc="-musl"
|
|
||||||
fi
|
|
||||||
base=""
|
|
||||||
if [ "$target_arch" = "x64" ]; then
|
|
||||||
if ! grep -qi avx2 /proc/cpuinfo 2>/dev/null; then
|
|
||||||
base="-baseline"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
bin="dist/opencode-linux-${target_arch}${base}${libc}/bin/opencode"
|
|
||||||
if [ ! -f "$bin" ]; then
|
|
||||||
printf "unable to find binary for %s%s%s\n" "$target_arch" "$base" "$libc" >&2
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
install -Dm755 "$bin" "${pkgdir}/usr/bin/opencode"
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
diff --git a/PKGBUILD b/PKGBUILD
|
|
||||||
--- a/PKGBUILD
|
|
||||||
+++ b/PKGBUILD
|
|
||||||
@@ -17,6 +17,12 @@ makedepends=('git' 'bun-bin' 'go')
|
|
||||||
source=("opencode-${pkgver}.tar.gz::https://github.com/sst/opencode/archive/v${pkgver}${_subver}.tar.gz")
|
|
||||||
sha256sums=('SKIP')
|
|
||||||
|
|
||||||
+prepare() {
|
|
||||||
+ cd "opencode-${pkgver}"
|
|
||||||
+ # Change strict bun version check to >= comparison
|
|
||||||
+ sed -i 's/process\.versions\.bun !== expectedBunVersion/process.versions.bun.localeCompare(expectedBunVersion, undefined, {numeric: true}) < 0/' packages/script/src/index.ts
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
build() {
|
|
||||||
cd "opencode-${pkgver}"
|
|
||||||
bun install
|
|
||||||
Reference in new issue
Block a user