1
0
mirror of https://gitlab.com/ykkzde/posy-cursors synced 2024-10-27 20:44:10 +00:00

Just to see what happens

This commit is contained in:
Dmitry Porunov 2020-06-24 21:07:11 +03:00
parent 696e3fcd27
commit 7e752d8e05

View File

@ -10,24 +10,15 @@ Update-AUR:
- cd ./pkg/aur - cd ./pkg/aur
- VERSION=$(echo $CI_COMMIT_REF_NAME | cut -c 2-) - VERSION=$(echo $CI_COMMIT_REF_NAME | cut -c 2-)
- echo "$CI_COMMIT_REF_NAME"
- echo "Pushing'v$VERSION'"
- sourceURL=https://gitlab.com/ykkzde/posy-cursors/-/archive/v$VERSION/cursorsPosy-v$VERSION.tar.gz?path=themes # Update pkgver in PKBUILD
- 'echo "Source: $sourceURL"'
- echo "Checking sha256sum checksums"
- 'sourceSHA=$(curl -sSL "$sourceURL" | sha256sum | cut -d" " -f1)'
# Update PKGBUILD version, source URL and sha256sum
- echo "Updating PKGBUILDS with release information..." - echo "Updating PKGBUILDS with release information..."
- sed "s/^pkgver=.*\$/pkgver=$VERSION/" -i posy-cursors/PKGBUILD - sed "s/^pkgver=.*\$/pkgver=$VERSION/" -i posy-cursors/PKGBUILD
- sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $sourceURL | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD
- sed "s/^sha256sums=.*\$/sha256sums=('$sourceSHA')/" -i posy-cursors/PKGBUILD
- echo "Installing Arch" - echo "Installing Arch"
- pacman -Syu --noconfirm sudo base-devel openssh git openssl - pacman -Syu --noconfirm sudo base-devel openssh git openssl
# Makepkg and .SRCINFO # Build and update .SRCINFO
- cd posy-cursors/ - cd posy-cursors/
- echo "makepkg" - echo "makepkg"
- sudo -u nobody makepkg -c - sudo -u nobody makepkg -c