diff options
author | Daniel Peukert | 2023-08-05 17:21:00 +0200 |
---|---|---|
committer | Daniel Peukert | 2023-08-05 17:21:00 +0200 |
commit | 9c8a6b6594506197b2c747074944dea0fe40e4df (patch) | |
tree | ccc5e2bb3c4ce5db9eea7c28922576c11c442797 /PKGBUILD | |
parent | 8d088626c88c3c4ca62dd9a3a0092ae3621ddc27 (diff) | |
download | aur-9c8a6b6594506197b2c747074944dea0fe40e4df.tar.gz |
Fix mongodb-compass-beta build
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,7 +4,7 @@ _edition=' Beta' pkgname="mongodb-$_target" _pkgver='1.39.1-beta.2' pkgver="$(printf '%s' "$_pkgver" | tr '-' '.')" -pkgrel='1' +pkgrel='2' pkgdesc='The official GUI for MongoDB - beta version' # If you're running on armv7h or aarch64, use the electron23-bin package from the AUR for the electron23 dependency # If you're running on armv7h, you have to add it to the arch and source arrays of the electron23-bin AUR dependency @@ -41,7 +41,12 @@ prepare() { sed -E -i 's|(.*)("electron": ")|\1"electron-to-chromium": "'"$(npm view 'electron-to-chromium@latest' version)"'",\n\1\2|' 'packages/compass/package.json' # Use a fork of os-dns-native (as there are issues with the path not being in the main node_modules directory, a local copy is not used) - sed -E -i "s|(.*)\"os-dns-native\": \".*\",|\1\"os-dns-native\": \"dpeukert/os-dns-native\",|" 'packages/'{'compass','connection-model'}'/package.json' + if [[ "$_target" =~ -beta$ ]]; then + sed -E -i "s|(.*)\"os-dns-native\": \".*\",|\1\"os-dns-native\": \"dpeukert/os-dns-native\",|" 'packages/compass/package.json' + else + sed -E -i "s|(.*)\"os-dns-native\": \".*\",|\1\"os-dns-native\": \"dpeukert/os-dns-native\",|" 'packages/'{'compass','connection-model'}'/package.json' + fi + patch --forward -p1 < "$srcdir/hadron-build-os-dns-native.diff" # Don't use the bundled ffmpeg |