Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ad5ddec00 | ||
|
|
faf6a27366 | ||
|
|
f7dd5cf6d3 | ||
|
|
06046d478d | ||
|
|
1f7ce8b6fb | ||
|
|
2a391702fd | ||
|
|
3d3125f4fe | ||
|
|
0aa4b0eba3 | ||
|
|
94e06bb116 | ||
|
|
c16ac69f0f | ||
|
|
1adbf2c0f6 |
@@ -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,18 +64,19 @@ 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
|
||||
- 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
|
||||
- chmod 600 /root/.ssh/{id_rsa*,config}
|
||||
- eval `ssh-agent -s`
|
||||
- ssh-add /root/.ssh/id_rsa
|
||||
# - ssh-add /root/.ssh/id_rsa
|
||||
- echo -en "${PASSPHRASE}" | ssh-add /root/.ssh/id_rsa
|
||||
- ssh-keyscan -H aur.archlinux.org >> /root/.ssh/known_hosts
|
||||
- git config --global user.name "Dmitry Porunov"
|
||||
- git config --global user.email "dmitry@auteiy.me"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user