Skip to content

Commit

Permalink
Fixed pkg-local
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Jan 8, 2024
1 parent 0e520da commit 308eafa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions system/hooks/pacman/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function pkg {

function pkg-local {
local package="$(cat "$1/PKGBUILD" | grep ^pkgname | awk -F'=' '{print $2}')"
local current_version="$(cat "$1/PKGBUILD" | grep '^\(pkgver\|pkgrel\)' | tr -d '\n' | sed -r 's/pkgver=(.*)pkgrel=(.*)/\1-\2/')"
local current_version="$(cat "$1/PKGBUILD" | grep '^\(pkgver=\|pkgrel=\)' | tr -d '\n' | sed -r 's/pkgver=(.*)pkgrel=(.*)/\1-\2/')"
local installed=$(pacman -Q "$package" 2> /dev/null)
local installed_version=$(echo $installed | awk '{ print $2 }')

Expand All @@ -33,7 +33,7 @@ function pkg-local {

(
cd "$1"
makepkg --noconfirm
makepkg --noconfirm -f
)
fi
sudo pacman -U --noconfirm "$1/$built_file"
Expand Down
2 changes: 1 addition & 1 deletion system/modules/common/gaming/root/etc/sudoers.d/games
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
User_Alias GAMES_USERS = %games
Cmnd_Alias PLAY= /usr/bin/play.sh,/usr/bin/briectl,/usr/bin/brie,/usr/bin/winecfg
Cmnd_Alias PLAY = /usr/bin/briectl,/usr/bin/brie,/usr/bin/winecfg

Defaults:GAMES_USERS env_reset
Defaults:GAMES_USERS env_keep += DISPLAY
Expand Down
5 changes: 5 additions & 0 deletions user/workstation/user/home/.config/Code/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"blueprintjs",
"bools",
"Borderless",
"briectl",
"bson",
"bytemuck",
"bytesize",
Expand Down Expand Up @@ -197,6 +198,7 @@
"nvngx",
"nvoptix",
"onoff",
"openapi",
"optlen",
"optres",
"outerwilds",
Expand Down Expand Up @@ -369,4 +371,7 @@
"[sql]": {
"editor.defaultFormatter": "mtxr.sqltools"
},
"[svg]": {
"editor.defaultFormatter": "jock.svg"
},
}

0 comments on commit 308eafa

Please sign in to comment.