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:
# - release-github
dependencies: []
only:
- /^v(\d+\.)*\d+$/
# only:
# - /^v(\d+\.)*\d+$/
before_script: []
script:
- cd ./pkg/aur
@@ -27,7 +27,7 @@ package-aur:
# Determine remote URLs and SHA checksums
- 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 "Determining sha256sum for remote source..."
- '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
- echo "Updating PKGBUILDS with release information..."
- 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
# Get SHA hash for local and remote file w/o version, update if it has changed