PKGBUILD: fix prepare glob expansion
This commit is contained in:
parent
8b727b6633
commit
c54a6256ba
1 changed files with 2 additions and 2 deletions
4
PKGBUILD
4
PKGBUILD
|
|
@ -19,8 +19,8 @@ prepare() {
|
||||||
nimble install -y --depsOnly --nimbleDir:"$srcdir/nimble" 2>/dev/null || true
|
nimble install -y --depsOnly --nimbleDir:"$srcdir/nimble" 2>/dev/null || true
|
||||||
export NIMBLE_DIR="$srcdir/nimble"
|
export NIMBLE_DIR="$srcdir/nimble"
|
||||||
# patch nim-dbus: add dtBool to getPrimitive, nil-safe $ for DbusType
|
# patch nim-dbus: add dtBool to getPrimitive, nil-safe $ for DbusType
|
||||||
local dbus_val="$NIMBLE_DIR/pkgs2"/dbus-*/dbus/private/value.nim
|
local dbus_val="$NIMBLE_DIR/pkgs2/$(ls "$NIMBLE_DIR/pkgs2" | grep '^dbus-')/dbus/private/value.nim"
|
||||||
local dbus_typ="$NIMBLE_DIR/pkgs2"/dbus-*/dbus/private/types.nim
|
local dbus_typ="$NIMBLE_DIR/pkgs2/$(ls "$NIMBLE_DIR/pkgs2" | grep '^dbus-')/dbus/private/types.nim"
|
||||||
if ! grep -q 'of dtBool:' "$dbus_val" 2>/dev/null; then
|
if ! grep -q 'of dtBool:' "$dbus_val" 2>/dev/null; then
|
||||||
sed -i '/^ of dtDouble:/i\ of dtBool:\n return addr val.boolValue' "$dbus_val"
|
sed -i '/^ of dtDouble:/i\ of dtBool:\n return addr val.boolValue' "$dbus_val"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue