blob: 1aad7b36d64d9657cfbc209856672caccc1e4e30 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Shohei Maruyama <cheat.sc.linux@outlook.com>
# Contributor: AEnterprise <aenterprise2@gmail.com>
pkgname='spacedrive'
pkgver=0.4.2
pkgrel=1
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=('AGPL-3.0-only or AGPL-3.0-or-later')
conflicts=('spacedrive-git')
source=(
"${pkgname}-v${pkgver}.tar.gz::https://github.com/spacedriveapp/spacedrive/archive/refs/tags/${pkgver}.tar.gz"
"spacedrive.desktop"
)
depends=('ffmpeg' 'libheif' 'gtk3' 'webkit2gtk-4.1' 'pango' 'gdk-pixbuf2' 'cairo' 'libsoup' 'glib2' 'xdotool')
makedepends=('cargo' 'pnpm>=9' 'clang' 'git' 'lld')
sha256sums=(
'4ec67b5741a4cd024ba01f307fcea46800dd3bab6175c6c2f8467940c572a7f2'
'0d9149faa1b17c8fea16e2ea344ca394c7fe93b33e746bb0168af81302ed164e'
)
prepare() {
cd "${pkgname}-${pkgver}"
pnpm install
}
build() {
cd "${pkgname}-${pkgver}"
export CARGO_TARGET_DIR=target
export RUSTFLAGS='-Clinker-plugin-lto -Clinker=clang -Clink-arg=-fuse-ld=lld'
export CFLAGS='-ffat-lto-objects'
export CC=clang
export COREPACK_ENABLE_STRICT=0
pnpm prep
pnpm exec tauri build --no-bundle -- --no-default-features
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm0755 "apps/desktop/src-tauri/target/release/sd-desktop" "${pkgdir}/usr/bin/spacedrive"
install -Dm0755 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
install -Dm0755 -t "${pkgdir}/usr/share/applications/" ../spacedrive.desktop
install -Dm0644 apps/desktop/app-icon.png "${pkgdir}/usr/share/icons/spacedrive.png"
}
|