Skip to content

Commit

Permalink
file-roller: Add stone archive mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Nov 7, 2024
1 parent 03b24cc commit f399eb8
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 7 deletions.
44 changes: 44 additions & 0 deletions packages/f/file-roller/files/0001-stone-mime.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
From 2327e098542fec3ab782251d45a415baec1ece1c Mon Sep 17 00:00:00 2001
From: Cory Forsstrom <cforsstrom18@gmail.com>
Date: Mon, 4 Nov 2024 14:06:46 -0800
Subject: [PATCH] Add stone mime

---
data/supported-mime-types | 1 +
src/fr-archive-libarchive.c | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/data/supported-mime-types b/data/supported-mime-types
index 3c5a76d6..8abd45cd 100644
--- a/data/supported-mime-types
+++ b/data/supported-mime-types
@@ -63,3 +63,4 @@ application/x-zstd-compressed-tar;
application/x-zoo;
application/zip;
application/zstd;
+application/x-stone-archive;
diff --git a/src/fr-archive-libarchive.c b/src/fr-archive-libarchive.c
index 14045729..92b77067 100644
--- a/src/fr-archive-libarchive.c
+++ b/src/fr-archive-libarchive.c
@@ -124,6 +124,7 @@ const char *libarchiver_mime_types[] = {
"application/x-zstd-compressed-tar",
#endif
"application/zip",
+ "application/x-stone-archive",
NULL
};

@@ -208,7 +209,8 @@ fr_archive_libarchive_get_capabilities (FrArchive *archive,
|| (strcmp (mime_type, "application/x-lha") == 0)
|| (strcmp (mime_type, "application/x-rar") == 0)
|| (strcmp (mime_type, "application/x-rpm") == 0)
- || (strcmp (mime_type, "application/x-xar") == 0))
+ || (strcmp (mime_type, "application/x-xar") == 0)
+ || (strcmp (mime_type, "application/x-stone-archive") == 0))
{
return capabilities;
}
--
2.47.0

1 change: 1 addition & 0 deletions packages/f/file-roller/files/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0001-stone-mime.patch
4 changes: 3 additions & 1 deletion packages/f/file-roller/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name : file-roller
version : '44.3'
release : 45
release : 46
source :
- https://download.gnome.org/sources/file-roller/44/file-roller-44.3.tar.xz : 04c8a74625fec84267fdec40306afb4104bd332d85061e0d36d4ab0533adfa4a
homepage : https://wiki.gnome.org/Apps/FileRoller
Expand All @@ -20,6 +20,8 @@ builddeps :
rundeps :
- unrar
setup : |
%patch -p1 -i $pkgfiles/0001-stone-mime.patch
%meson_configure -Dpackagekit=false
build : |
%ninja_build
Expand Down
12 changes: 6 additions & 6 deletions packages/f/file-roller/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Name>file-roller</Name>
<Homepage>https://wiki.gnome.org/Apps/FileRoller</Homepage>
<Packager>
<Name>Reilly Brogan</Name>
<Email>solus@reillybrogan.com</Email>
<Name>Cory Forsstrom</Name>
<Email>cforsstrom18@gmail.com</Email>
</Packager>
<License>GPL-2.0-or-later</License>
<PartOf>desktop.gnome</PartOf>
Expand Down Expand Up @@ -542,12 +542,12 @@
</Files>
</Package>
<History>
<Update release="45">
<Date>2024-10-31</Date>
<Update release="46">
<Date>2024-11-07</Date>
<Version>44.3</Version>
<Comment>Packaging update</Comment>
<Name>Reilly Brogan</Name>
<Email>solus@reillybrogan.com</Email>
<Name>Cory Forsstrom</Name>
<Email>cforsstrom18@gmail.com</Email>
</Update>
</History>
</PISI>

0 comments on commit f399eb8

Please sign in to comment.