diff options
author | Shohei Maruyama | 2023-11-06 04:10:46 +0900 |
---|---|---|
committer | Shohei Maruyama | 2023-11-06 04:10:46 +0900 |
commit | 19fe42748e599c48bbc5ecad25fdce328fe768f2 (patch) | |
tree | bc85c4fcd0c534039877677041ebf4f7bf448d0d | |
download | aur-19fe42748e599c48bbc5ecad25fdce328fe768f2.tar.gz |
Initial commit
Signed-off-by: Shohei Maruyama <cheat.sc.linux@outlook.com>
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..af879db356a8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = spacedrive + pkgdesc = Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust. + pkgver = 0.1.2 + pkgrel = 1 + url = https://spacedrive.com/ + arch = x86_64 + license = AGPL3 + makedepends = cargo + makedepends = pnpm + depends = ffmpeg + depends = libheif + depends = gtk3 + depends = webkit2gtk + depends = pango + depends = gdk-pixbuf2 + depends = cairo + depends = libsoup + depends = glib2 + source = spacedrive-v0.1.2.tar.gz::https://github.com/spacedriveapp/spacedrive/archive/refs/tags/0.1.2.tar.gz + sha256sums = 21ae09726139d445174f1b92dd47ec626291a64b7846ed14cc1f44aa658c2d88 + +pkgname = spacedrive diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..28bdefeafad6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/src +/pkg +*.tar.gz +*.pkg.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c57c9afbfb5b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Shohei Maruyama <cheat.sc.linux@outlook.com> + +pkgname='spacedrive' +pkgver=0.1.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=('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' 'pnpm') +sha256sums=('21ae09726139d445174f1b92dd47ec626291a64b7846ed14cc1f44aa658c2d88') + +prepare() { + cd "${pkgname}-${pkgver}" + + export CARGO_TARGET_DIR=target + export RUSTUP_TOOLCHAIN=stable + + pnpm install + pnpm prep +} + +build() { + cd "${pkgname}-${pkgver}" + + export CARGO_TARGET_DIR=target + export RUSTUP_TOOLCHAIN=stable + + 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 +} |