add: spacedrive

This commit is contained in:
madomado
2024-02-06 19:37:32 +08:00
parent eb2a494110
commit 18fe524883
+38
View File
@@ -0,0 +1,38 @@
Name: spacedrive
Version: 0.2.3
Release: 1%?dist
Summary: An open source cross-platform file explorer
License: AGPL-3.0
URL: https://spacedrive.com
Source0: https://github.com/spacedriveapp/spacedrive/archive/refs/tags/%version.tar.gz
Requires: ffmpeg libheif gtk3 webkit2gtk4.1 pango gdk-pixbuf2 cairo libsoup glib2
BuildRequires: pnpm clang git-core
%description
Spacedrive is an open source cross-platform file manager, powered by a virtual distributed filesystem (VDFS) written in Rust.
%prep
%autosetup
# we need nightly cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default nightly
pnpm install
%build
export CARGO_TARGET_DIR=target
export RUSTUP_TOOLCHAIN=1.73
pnpm prep
pnpm tauri build --bundles app -- --no-default-features
%install
install -Dm755 -t %buildroot%_bindir apps/desktop/src-tauri/target/release/spacedrive
%files
%license LICENSE
%_bindir/spacedrive
%changelog
%autochangelog