Package Details: ffsend-bin 0.2.76-1

Git Clone URL: https://aur.archlinux.org/ffsend-bin.git (read-only, click to copy)
Package Base: ffsend-bin
Description: Easily and securely share files from the command line. A Send client.
Upstream URL: https://gitlab.com/timvisee/ffsend
Keywords: firefox send
Licenses: GPL3
Conflicts: ffsend
Provides: ffsend
Submitter: axionl
Maintainer: timvisee (axionl)
Last Packager: timvisee
Votes: 24
Popularity: 0.000187
First Submitted: 2019-03-25 08:35 (UTC)
Last Updated: 2022-06-20 08:52 (UTC)

Dependencies (3)

Required by (0)

Sources (5)

Latest Comments

« First ‹ Previous 1 2

timvisee commented on 2019-03-12 15:23 (UTC) (edited on 2019-03-12 15:24 (UTC) by timvisee)

@emlun Thank you!

I interpreted the Wiki as: submitting binaries should be avoided to the AUR git repository (to prevent it from growing too large too fast). Many other AUR packages are using a remotely hosted binary.

I also have ffsend-git available which builds from source. It can be quite flaky though, due to the cargo dependency not really allowing you to set a required version. Therefore I decided to submit a binary package as well, which won't have any build issues.

What do you think?

emlun commented on 2019-03-12 15:13 (UTC) (edited on 2019-03-12 15:15 (UTC) by emlun)

This is really cool! Thanks!

However, quoting the Arch Wiki on AUR:

Submitting binaries should be avoided if the sources are available. [...]

So I think it's preferable to build the program from sources rather than downloading a prebuilt binary. If you agree, you can use this patch for that:

diff --git a/PKGBUILD b/PKGBUILD
index 5818831..6a92071 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,12 +7,17 @@ pkgdesc="Easily and securely share files from the command line. A Firefox Send c
 url="https://gitlab.com/timvisee/ffsend"
 license=('GPL3')
 conflicts=('ffsend-git')
-source=("ffsend::https://github.com/timvisee/ffsend/releases/download/v$pkgver/ffsend-v$pkgver-linux-x64-static")
-sha256sums=('SKIP')
+source=("ffsend::https://github.com/timvisee/ffsend/archive/v$pkgver.tar.gz")
+sha256sums=('271ab5595e96ca93ef10e50c6a136cf9fdd73498ddd9a5ea3a8f5ead63e3c3e1')
 arch=('x86_64')
 depends=('ca-certificates')
 optdepends=('xclip: clipboard support')

+build() {
+    cd "${srcdir}/ffsend-${pkgver}"
+    cargo build --release
+}
+
 package() {
-    install -D "$srcdir/ffsend" "$pkgdir/usr/bin/ffsend"
+    install -D "${srcdir}/ffsend-${pkgver}/target/release/ffsend" "$pkgdir/usr/bin/ffsend"
 }