From 14a371118c28dd3e9910213dce87b4703017272e Mon Sep 17 00:00:00 2001 From: Dmitry Porunov Date: Fri, 1 Nov 2019 03:10:05 +0400 Subject: [PATCH] Fix source url What's this? Fix .gitlab-ci.yml Fix .gitlab-ci.yml URL_SOURCE Fix .gitlab-ci.yml --- .gitlab-ci.yml | 6 ++--- pkg/aur/posy-cursors/PKGBUILD_REF | 42 ------------------------------- 2 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 pkg/aur/posy-cursors/PKGBUILD_REF diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7551199..a0e8dce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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?path=themes - '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 @@ -64,7 +64,7 @@ package-aur: # else # echo "Not making git source package, it has not changed" # fi - # - cd .. + - cd .. # Set up SSH for publishing - mkdir -p /root/.ssh diff --git a/pkg/aur/posy-cursors/PKGBUILD_REF b/pkg/aur/posy-cursors/PKGBUILD_REF deleted file mode 100644 index 82482ca..0000000 --- a/pkg/aur/posy-cursors/PKGBUILD_REF +++ /dev/null @@ -1,42 +0,0 @@ -# Maintainer: Tim Visee -# -# This PKGBUILD is managed externally, and is automatically updated here: -# - https://gitlab.com/timvisee/ffsend/blob/master/pkg/aur/ffsend/PKGBUILD -# - Mirror: https://github.com/timvisee/ffsend/blob/master/pkg/aur/ffsend/PKGBUILD - -pkgname=ffsend -pkgver=0.0.0 # automatically set in CI, see: /.gitlab-ci.yml -pkgrel=1 -pkgdesc="Easily and securely share files from the command line. A Firefox Send client." -url="https://gitlab.com/timvisee/ffsend" -license=('GPL3') -source=("ffsend-v$pkgver.tar.gz::$url/-/archive/v$pkgver/ffsend-v$pkgver.tar.gz") # automatically set in CI, see: /.gitlab-ci.yml -sha256sums=('SKIP') # automatically set in CI, see: /.gitlab-ci.yml -arch=('x86_64' 'i686') -provides=('ffsend') -depends=('ca-certificates') -makedepends=('openssl>=1.0' 'rust>=1.32' 'cargo' 'cmake') -optdepends=('xclip: clipboard support' - 'bash-completion: support auto completion for bash') - -build() { - cd "ffsend-v$pkgver" - env CARGO_INCREMENTAL=0 cargo build --release -} - -package() { - cd "$srcdir/ffsend-v$pkgver" - - # Install Binary - install -Dm755 "./target/release/ffsend" "$pkgdir/usr/bin/ffsend" - - # Install shell completions and LICENSE file - install -Dm644 "contrib/completions/ffsend.bash" \ - "$pkgdir/etc/bash_completion.d/ffsend" - install -Dm644 "contrib/completions/_ffsend" \ - "$pkgdir/usr/share/zsh/site-functions/_ffsend" - install -Dm644 "contrib/completions/ffsend.fish" \ - "$pkgdir/usr/share/fish/vendor_completions.d/ffsend.fish" - install -Dm644 "LICENSE" \ - "$pkgdir/usr/share/licenses/ffsend/LICENSE" -}