Initial commit

master
Markus Koch 2021-01-09 16:58:25 +01:00
commit aed166b858
4 changed files with 105 additions and 0 deletions

4
.gitignore vendored 100644
View File

@ -0,0 +1,4 @@
pkg/
src/
.SRCINFO
fractal*

View File

@ -0,0 +1,39 @@
From 86a8d98413e6d4c97629d3ccdcbd7d0f8de3c6bb Mon Sep 17 00:00:00 2001
From: Markus Koch <markus@notsyncing.net>
Date: Sat, 9 Jan 2021 16:39:57 +0100
Subject: [PATCH] Use AccessToken auth for media
---
src/r0/media/get_content.rs | 2 +-
src/r0/media/get_content_thumbnail.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/r0/media/get_content.rs b/src/r0/media/get_content.rs
index 9dd8464..5ae9125 100644
--- a/src/r0/media/get_content.rs
+++ b/src/r0/media/get_content.rs
@@ -10,7 +10,7 @@ ruma_api! {
name: "get_media_content",
path: "/_matrix/media/r0/download/:server_name/:media_id",
rate_limited: false,
- authentication: None,
+ authentication: AccessToken,
}
request: {
diff --git a/src/r0/media/get_content_thumbnail.rs b/src/r0/media/get_content_thumbnail.rs
index 06cd305..452683f 100644
--- a/src/r0/media/get_content_thumbnail.rs
+++ b/src/r0/media/get_content_thumbnail.rs
@@ -23,7 +23,7 @@ ruma_api! {
name: "get_content_thumbnail",
path: "/_matrix/media/r0/thumbnail/:server_name/:media_id",
rate_limited: true,
- authentication: None,
+ authentication: AccessToken,
}
request: {
--
2.30.0

45
PKGBUILD 100644
View File

@ -0,0 +1,45 @@
# Maintainer: Markus Koch <markus@notsyncing.net>
pkgname=fractal-citadel
_gitname=fractal
pkgver=r2331.f9861e4b
pkgrel=1
pkgdesc="GNOME Fractal adapted to work with Thales Citadel"
arch=('i686' 'x86_64' 'aarch64')
license=('GPL3')
url="https://gitlab.gnome.org/GNOME/fractal"
depends=('gtk3' 'libhandy' 'gtksourceview3' 'gstreamer' 'gst-plugins-base-libs' 'gst-plugins-bad' 'gst-editing-services' 'gst-libav' 'gspell')
optdepends=('gnome-keyring: secrets service')
conflics=('fractal' 'fractal-git')
provides=('fractal')
makedepends=('rust' 'gst-editing-services' 'pkg-config' 'git' 'meson')
source=("git+https://gitlab.gnome.org/World/fractal.git" "0001-Use-AccessToken-auth-for-media.patch")
md5sums=('SKIP' 'SKIP')
pkgver() {
cd "${srcdir}/${_gitname}/"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
# Run vanilla build to download all crates
cd "${srcdir}/${_gitname}/"
arch-meson . _build
ninja -C _build
# Then patch the API files
cd _build/target/cargo-home/git/checkouts/ruma-*/*/ruma-client-api/
patch -p1 < ${srcdir}/0001-Use-AccessToken-auth-for-media.patch
cd "${srcdir}/${_gitname}/"
# Force rebuild by "changing" a source file, which will also cause the
# dependencies that were downloaded with the first ninja command, and then
# modified through the patches, to be rebuilt.
touch fractal-gtk/src/main.rs
ninja -C _build
}
package() {
cd "${srcdir}/${_gitname}/"
DESTDIR="${pkgdir}" ninja -C _build install
}

17
README.MD 100644
View File

@ -0,0 +1,17 @@
# GNOME Fractal for Thales Citadel
Patches to make GNOME Fractal compatible with [Thales' Citadel](https://citadel.team/).
## How to use
### ArchLinux
* Run `makepkg` inside this repository.
### Other
* Download the fractal sources along with all of its crates
* Apply the 0001 patch to the `ruma-client-api` crate
* Build fractal
## PS
Yes, this is a somewhat dirty way of doing it, but it works and it's quick ;D