Skip to content

Commit 7f8ccd0

Browse files
committed
Ports: Add fuse-exfat
1 parent e7275cf commit 7f8ccd0

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

Ports/fuse-exfat/package.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env -S bash ../.port_include.sh
2+
port='fuse-exfat'
3+
version='1.4.0'
4+
files=(
5+
"https://github.com/relan/exfat/releases/download/v${version}/fuse-exfat-${version}.tar.gz#a1cfedc55e0e7a12c184605aa0f0bf44b24a3fb272449b20b2c8bbe6edb3001e"
6+
)
7+
depends=("libfuse")
8+
useconfigure='true'
9+
use_fresh_config_sub='true'
10+
config_sub_paths=('config.sub')
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: implicitfield <114500360+implicitfield@users.noreply.github.com>
3+
Date: Mon, 2 Dec 2024 20:37:43 +0200
4+
Subject: [PATCH] Teach platform.h about serenity
5+
6+
---
7+
libexfat/platform.h | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/libexfat/platform.h b/libexfat/platform.h
11+
index 9bd125a..4a48323 100644
12+
--- a/libexfat/platform.h
13+
+++ b/libexfat/platform.h
14+
@@ -24,7 +24,7 @@
15+
#ifndef PLATFORM_H_INCLUDED
16+
#define PLATFORM_H_INCLUDED
17+
18+
-#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)
19+
+#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) || defined(__serenity__)
20+
21+
#include <endian.h>
22+
#include <byteswap.h>

Ports/fuse-exfat/patches/ReadMe.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Patches for fuse-exfat on SerenityOS
2+
3+
## `0001-Teach-platform.h-about-serenity.patch`
4+
5+
Teach platform.h about serenity
6+

0 commit comments

Comments
 (0)