Use and cache versioned files for AUR, fix inconsistencies [ci skip]

This commit is contained in:
timvisee 2019-04-02 16:08:50 +02:00
parent e68e0feedd
commit 156d5db765
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
4 changed files with 18 additions and 18 deletions

View file

@ -271,16 +271,16 @@ package-aur:
- echo "Determining SHA checksums for remote files..." - echo "Determining SHA checksums for remote files..."
- URL_BIN=https://github.com/timvisee/ffsend/releases/download/v$VERSION/ffsend-v$VERSION-linux-x64-static - URL_BIN=https://github.com/timvisee/ffsend/releases/download/v$VERSION/ffsend-v$VERSION-linux-x64-static
- URL_SOURCE=https://gitlab.com/timvisee/ffsend/-/archive/v$VERSION/ffsend-v$VERSION.tar.gz - URL_SOURCE=https://gitlab.com/timvisee/ffsend/-/archive/v$VERSION/ffsend-v$VERSION.tar.gz
- BASH_COMPLETION="https://raw.githubusercontent.com/timvisee/ffsend/master/contrib/completions/ffsend.bash" - BASH_COMPLETION="https://raw.githubusercontent.com/timvisee/ffsend/v$VERSION/contrib/completions/ffsend.bash"
- FISH_COMPLETION="https://raw.githubusercontent.com/timvisee/ffsend/master/contrib/completions/ffsend.fish" - FISH_COMPLETION="https://raw.githubusercontent.com/timvisee/ffsend/v$VERSION/contrib/completions/ffsend.fish"
- 'echo "Selected binary URL: $URL_BIN"' - 'echo "Selected binary URL: $URL_BIN"'
- 'echo "Selected source URL: $URL_SOURCE"' - 'echo "Selected source URL: $URL_SOURCE"'
- echo "Determining sha256sum for remote binary..." - echo "Determining sha256sum for remote binary..."
- 'SHA_BIN=$(curl -sSL "$URL_BIN" | sha256sum | cut -d" " -f1)' - 'SHA_BIN=$(curl -sSL "$URL_BIN" | sha256sum | cut -d" " -f1)'
- 'echo "Got sha256sum: $SHA_BIN"' - 'echo "Got sha256sum: $SHA_BIN"'
- 'SHA_BASH_COMPLETION=$(curl -sSL "BASH_COMPLETION" | sha256sum | cut -d" " -f1)' - 'SHA_BASH_COMPLETION=$(curl -sSL "$BASH_COMPLETION" | sha256sum | cut -d" " -f1)'
- 'echo "Got sha256sums of bash completion: $SHA_BASH_COMPLETION"' - 'echo "Got sha256sums of bash completion: $SHA_BASH_COMPLETION"'
- 'SHA_FISH_COMPLETION=$(curl -sSL "FISH_COMPLETION" | sha256sum | cut -d" " -f1)' - 'SHA_FISH_COMPLETION=$(curl -sSL "$FISH_COMPLETION" | sha256sum | cut -d" " -f1)'
- 'echo "Got sha256sums of fish completion: $SHA_FISH_COMPLETION"' - 'echo "Got sha256sums of fish completion: $SHA_FISH_COMPLETION"'
- 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)'

View file

@ -6,14 +6,14 @@
# - Mirror: https://github.com/timvisee/ffsend/blob/master/pkg/aur/ffsend-bin/PKGBUILD # - Mirror: https://github.com/timvisee/ffsend/blob/master/pkg/aur/ffsend-bin/PKGBUILD
pkgname=ffsend-bin pkgname=ffsend-bin
pkgver=0.2.42 # automatically set in CI, see: /.gitlab-ci.yml pkgver=0.0.0 # automatically set in CI, see: /.gitlab-ci.yml
pkgrel=1 pkgrel=1
pkgdesc="Easily and securely share files from the command line. A Firefox Send client." pkgdesc="Easily and securely share files from the command line. A Firefox Send client."
url="https://gitlab.com/timvisee/ffsend" url="https://gitlab.com/timvisee/ffsend"
license=('GPL3') license=('GPL3')
source=("ffsend-v${pkgver}::https://github.com/timvisee/ffsend/releases/download/v$pkgver/ffsend-v$pkgver-linux-x64-static" source=("ffsend-v$pkgver::https://github.com/timvisee/ffsend/releases/download/v$pkgver/ffsend-v$pkgver-linux-x64-static"
"ffsent.bash::https://raw.githubusercontent.com/timvisee/ffsend/master/contrib/completions/ffsend.bash" "ffsend-v$pkgver.bash::https://raw.githubusercontent.com/timvisee/ffsend/v$pkgver/contrib/completions/ffsend.bash"
"ffsend.fish::https://raw.githubusercontent.com/timvisee/ffsend/master/contrib/completions/ffsend.fish") # automatically set in CI, see: /.gitlab-ci.yml "ffsend-v$pkgver.fish::https://raw.githubusercontent.com/timvisee/ffsend/v$pkgver/contrib/completions/ffsend.fish") # automatically set in CI, see: /.gitlab-ci.yml
sha256sums=('SKIP') sha256sums=('SKIP')
arch=('x86_64') arch=('x86_64')
provides=('ffsend') provides=('ffsend')
@ -23,12 +23,12 @@ optdepends=('xclip: clipboard support'
'bash-completion: support auto completion for bash') 'bash-completion: support auto completion for bash')
package() { package() {
cd "${srcdir}" cd "$srcdir"
# Install Binary # Install Binary
install -Dm755 "ffsend" "$pkgdir/usr/bin/ffsend" install -Dm755 "ffsend-v$pkgver" "$pkgdir/usr/bin/ffsend"
# Install completions # Install completions
install -Dm644 "ffsend.bash" "${pkgver}/usr/share/bash-completion/completions/ffsend" install -Dm644 "ffsend-v$pkgver.bash" "$pkgver/usr/share/bash-completion/completions/ffsend"
install -Dm644 "ffsend.fish" "${pkgver}/usr/share/fish/vendor_completions.d/ffsend.fish" install -Dm644 "ffsend-v$pkgver.fish" "$pkgver/usr/share/fish/vendor_completions.d/ffsend.fish"
} }

View file

@ -26,13 +26,13 @@ build() {
} }
package() { package() {
cd "${srcdir}/ffsend" cd "$srcdir/ffsend"
# Install Binary # Install Binary
install -Dm755 "./target/release/ffsend" "$pkgdir/usr/bin/ffsend" install -Dm755 "./target/release/ffsend" "$pkgdir/usr/bin/ffsend"
# Install completions # Install completions
cd "./contrib/completions" cd "./contrib/completions"
install -Dm644 "ffsend.bash" "${pkgver}/usr/share/bash-completion/completions/ffsend" install -Dm644 "ffsend.bash" "$pkgver/usr/share/bash-completion/completions/ffsend"
install -Dm644 "ffsend.fish" "${pkgver}/usr/share/fish/vendor_completions.d/ffsend.fish" install -Dm644 "ffsend.fish" "$pkgver/usr/share/fish/vendor_completions.d/ffsend.fish"
} }

View file

@ -25,13 +25,13 @@ build() {
} }
package() { package() {
cd "${srcdir}/ffsend-v${pkgver}" cd "$srcdir/ffsend-v$pkgver"
# Install Binary # Install Binary
install -Dm755 "./target/release/ffsend" "$pkgdir/usr/bin/ffsend" install -Dm755 "./target/release/ffsend" "$pkgdir/usr/bin/ffsend"
# Install completions # Install completions
cd "./contrib/completions" cd "./contrib/completions"
install -Dm644 "ffsend.bash" "${pkgver}/usr/share/bash-completion/completions/ffsend" install -Dm644 "ffsend.bash" "$pkgver/usr/share/bash-completion/completions/ffsend"
install -Dm644 "ffsend.fish" "${pkgver}/usr/share/fish/vendor_completions.d/ffsend.fish" install -Dm644 "ffsend.fish" "$pkgver/usr/share/fish/vendor_completions.d/ffsend.fish"
} }