Skip to content

Commit

Permalink
Fix issue with deployment to the AUR.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Jan 1, 2022
1 parent 408e277 commit 2393ff3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ jobs:
bsdtar -C / -xvf "$patched_glibc" && \
rm ${patched_glibc} && \
pacman -Syu --needed --noconfirm && \
pacman -S --needed --noconfirm git binutils pacman-contrib openssh rsync python python-setuptools
pacman -S --needed --noconfirm git binutils pacman-contrib openssh rsync python python-setuptools jq
env:
patched_glibc: glibc-linux4-2.33-4-x86_64.pkg.tar.zst

Expand All @@ -380,6 +380,15 @@ jobs:
latest=$(python3 setup.py --version)
if [[ $(python3 setup.py --name) == "PyFunceble-dev" ]]
then
licenseURL="https://raw.githubusercontent.com/funilrys/PyFunceble/dev/LICENSE"
newURL=$(curl -s https://pypi.org/pypi/PyFunceble-dev/json | jq ".releases.\"${latest}\"[] | select(.filename | strings | test(\".tar\")).url")
else
licenseURL="https://raw.githubusercontent.com/funilrys/PyFunceble/master/LICENSE"
newURL=$(curl -s https://pypi.org/pypi/PyFunceble/json | jq ".releases.\"${latest}\"[] | select(.filename | strings | test(\".tar\")).url")
fi
git config --global user.name ${{ github.actor }}
git config --global user.email ${{ secrets.GIT_EMAIL }}
git clone ssh://aur@aur.archlinux.org/pyfunceble-dev.git ${aurRepoDir}
Expand All @@ -398,6 +407,7 @@ jobs:
sed "/^pkgver=/s/.*/pkgver=${latest}/" -i PKGBUILD
sed "/^pkgrel=/s/.*/pkgrel=1/" -i PKGBUILD
sed "/^source=/s/.*/source=('${newURL}' '${licenseURL}')/" -i PKGBUILD
su makepkg -c "updpkgsums"
su makepkg -c "makepkg --printsrcinfo" > .SRCINFO
Expand Down

0 comments on commit 2393ff3

Please sign in to comment.