Compare commits

..

7 Commits

Author SHA1 Message Date
Dmitry Porunov
1f7ce8b6fb Add debug echo 2019-11-01 03:51:37 +04:00
Dmitry Porunov
2a391702fd Use echo instead of cat for variable 2019-11-01 03:42:02 +04:00
Dmitry Porunov
3d3125f4fe Fix .gitlab-ci.yml 2019-11-01 03:33:44 +04:00
Dmitry Porunov
0aa4b0eba3 Fix .gitlab-ci.yml URL_SOURCE 2019-11-01 03:25:34 +04:00
Dmitry Porunov
94e06bb116 Fix .gitlab-ci.yml 2019-11-01 03:12:48 +04:00
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
2 changed files with 6 additions and 46 deletions

View File

@@ -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,12 +64,14 @@ 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
- echo "$AUR_SSH_PRIVATE"
- sleep 5
- cp ./aur.pub /root/.ssh/id_rsa.pub
- cat "$AUR_SSH_PRIVATE" | base64 -d > /root/.ssh/id_rsa
- echo "$AUR_SSH_PRIVATE" | base64 -d > /root/.ssh/id_rsa
- echo "Host aur.archlinux.org" >> /root/.ssh/config
- echo " IdentityFile /root/.ssh/aur" >> /root/.ssh/config
- echo " User aur" >> /root/.ssh/config

View File

@@ -1,42 +0,0 @@
# Maintainer: Tim Visee <tim@visee.me>
#
# 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"
}