Add patch
This commit is contained in:
1 parent
6ee0c85519
commit
88a13336c3
1 file changed
+16
@@ -0,0 +1,16 @@
|
|||||||
|
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