Compare commits

..

2 Commits

Author SHA1 Message Date
Dmitry Porunov
c16ac69f0f What's this? 2019-11-01 03:11:06 +04:00
Dmitry Porunov
1adbf2c0f6 Fix source url 2019-11-01 03:10:05 +04:00

View File

@@ -15,8 +15,8 @@ package-aur:
# needs: # needs:
# - release-github # - release-github
dependencies: [] dependencies: []
only: # only:
- /^v(\d+\.)*\d+$/ # - /^v(\d+\.)*\d+$/
before_script: [] before_script: []
script: script:
- cd ./pkg/aur - cd ./pkg/aur
@@ -27,7 +27,7 @@ package-aur:
# Determine remote URLs and SHA checksums # Determine remote URLs and SHA checksums
- echo "Determining SHA checksums for remote files..." - echo "Determining SHA checksums for remote files..."
- URL_SOURCE=https://git.auteiy.me/dmitry/cursorsPosy/-/archive/v$VERSION/ffsend-v$VERSION.tar.gz - URL_SOURCE=https://git.auteiy.me/dmitry/cursorsPosy/-/archive/v$VERSION/cursorsPosy-v$VERSION.tar.gz
- 'echo "Selected source URL: $URL_SOURCE"' - 'echo "Selected source URL: $URL_SOURCE"'
- echo "Determining sha256sum for remote source..." - echo "Determining sha256sum for remote source..."
- 'SHA_SOURCE=$(curl -sSL "$URL_SOURCE" | sha256sum | cut -d" " -f1)' - 'SHA_SOURCE=$(curl -sSL "$URL_SOURCE" | sha256sum | cut -d" " -f1)'
@@ -36,7 +36,7 @@ package-aur:
# Update PKGBUILD parameters: version, source URL and SHA sum # Update PKGBUILD parameters: version, source URL and SHA sum
- 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 $URL_SOURCE | sed 's/\//\\\//g')\")/" -i ffsend/PKGBUILD - sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $URL_SOURCE | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD
- sed "s/^sha256sums=.*\$/sha256sums=('$SHA_SOURCE')/" -i posy-cursors/PKGBUILD - sed "s/^sha256sums=.*\$/sha256sums=('$SHA_SOURCE')/" -i posy-cursors/PKGBUILD
# Get SHA hash for local and remote file w/o version, update if it has changed # Get SHA hash for local and remote file w/o version, update if it has changed