|
@@ -12,23 +12,38 @@ url="https://gitlab.com/timvisee/ffsend"
|
|
license=('GPL3')
|
|
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
|
|
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
|
|
sha256sums=('SKIP') # automatically set in CI, see: /.gitlab-ci.yml
|
|
-arch=('x86_64' 'i686')
|
|
|
|
|
|
+arch=('any')
|
|
provides=('ffsend')
|
|
provides=('ffsend')
|
|
depends=('ca-certificates')
|
|
depends=('ca-certificates')
|
|
-makedepends=('openssl>=1.0' 'rust>=1.39' 'cargo' 'cmake')
|
|
|
|
-optdepends=('xclip: clipboard support'
|
|
|
|
- 'bash-completion: support auto completion for bash')
|
|
|
|
|
|
+makedepends=('cargo' 'cmake' 'openssl>=1.0')
|
|
|
|
+optdepends=('xclip: clipboard support')
|
|
|
|
+
|
|
|
|
+prepare() {
|
|
|
|
+ cd "$srcdir/ffsend-v$pkgver"
|
|
|
|
+
|
|
|
|
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
|
|
|
+}
|
|
|
|
|
|
build() {
|
|
build() {
|
|
- cd "ffsend-v$pkgver"
|
|
|
|
- env CARGO_INCREMENTAL=0 cargo build --release
|
|
|
|
|
|
+ cd "$srcdir/ffsend-v$pkgver"
|
|
|
|
+
|
|
|
|
+ export RUSTUP_TOOLCHAIN=stable
|
|
|
|
+ export CARGO_TARGET_DIR=target
|
|
|
|
+ cargo build --frozen --release
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+check() {
|
|
|
|
+ cd "$srcdir/ffsend-v$pkgver"
|
|
|
|
+
|
|
|
|
+ export RUSTUP_TOOLCHAIN=stable
|
|
|
|
+ cargo test --frozen
|
|
}
|
|
}
|
|
|
|
|
|
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 -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
|
|
|
|
|
|
# Install shell completions and LICENSE file
|
|
# Install shell completions and LICENSE file
|
|
install -Dm644 "contrib/completions/ffsend.bash" \
|
|
install -Dm644 "contrib/completions/ffsend.bash" \
|