blob: 407639713408263b0e7b9c96ea24f4ec936c1afc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Shohei Maruyama <cheat.sc.linux@outlook.com>
pkgname='spacedrive'
pkgver=0.1.2
pkgrel=4
pkgdesc='Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.'
arch=('x86_64')
url='https://spacedrive.com/'
license=('AGPL3')
source=("${pkgname}-v${pkgver}.tar.gz::https://github.com/spacedriveapp/spacedrive/archive/refs/tags/${pkgver}.tar.gz")
depends=('ffmpeg' 'libheif' 'gtk3' 'webkit2gtk' 'pango' 'gdk-pixbuf2' 'cairo' 'libsoup' 'glib2')
makedepends=('cargo-nightly' 'pnpm' 'clang' 'git')
sha256sums=('21ae09726139d445174f1b92dd47ec626291a64b7846ed14cc1f44aa658c2d88')
prepare() {
cd "${pkgname}-${pkgver}"
pnpm install
}
build() {
cd "${pkgname}-${pkgver}"
export CARGO_TARGET_DIR=target
export RUSTUP_TOOLCHAIN=1.73
pnpm prep
pnpm tauri build --bundles app
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm0755 -t "${pkgdir}/usr/bin/" "apps/desktop/src-tauri/target/release/spacedrive"
install -Dm0755 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
}
|