1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 20:58:37 -06:00

fix: AUR Update

This commit is contained in:
Sayantan Santra 2023-09-13 18:20:43 -05:00
parent a7b49e8330
commit 55a7b54bcf
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -17,9 +17,10 @@ VERS="$2"
# Do the updates for AUR # Do the updates for AUR
echo "Updating AUR..." echo "Updating AUR..."
cd "$GIT_DIR/AUR"
[ -d "$1" ] && PKG="$1" || PKG="$1-bin" [ -d "$1" ] && PKG="$1" || PKG="$1-bin"
cd "$GIT_DIR/AUR/$PKG" cd "$PKG"
sed -i -E "s/pkgver=[0-9\.]+/pkgver=$VERS/" PKGBUILD sed -i -E "s/pkgver=[0-9\.]+/pkgver=$VERS/" PKGBUILD
updpkgsums updpkgsums
makepkg --printsrcinfo >.SRCINFO makepkg --printsrcinfo >.SRCINFO
@ -40,7 +41,7 @@ git push
# Do the updates for LURE # Do the updates for LURE
echo "Updating LURE repo..." echo "Updating LURE repo..."
cd "$GIT_DIR/lure-repo/" cd "$GIT_DIR/lure-repo"
[ -d "$1" ] && PKG="$1" || PKG="$1-bin" [ -d "$1" ] && PKG="$1" || PKG="$1-bin"
cd "$PKG" cd "$PKG"
sed -i -E "s/version=[0-9\.]+/version=$VERS/" lure.sh sed -i -E "s/version=[0-9\.]+/version=$VERS/" lure.sh