For anyone wanting to run the 1.18 version the following should work.
PKGBUILD
pkgname=fatx
pkgver=1.18
_tag=17d7403f0b23fa43cd71e90cf22273ae7f53c9db
pkgrel=1
pkgdesc='XBox filesystem support for linux'
arch=('i686' 'pentium4' 'armv7h' 'aarch64' 'x86_64')
url='http://sourceforge.net/projects/fatx/'
license=('GPL')
provides=($pkgname)
depends=('fuse')
makedepends=('boost' 'boost-libs' 'doxygen')
source=("git+https://git.code.sf.net/p/fatx/code#tag=$_tag"
'fatx.patch')
sha256sums=('SKIP'
'68b26b38b725a682477ff062ce2de69c930f88482b69ffd7a30cf991448748d5')
build() {
patch -p0 -d "${srcdir}"/code <"${srcdir}"/fatx.patch
mkdir -p "${srcdir}"/code/build
cd "${srcdir}"/code/build
cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr
make
}
package() {
cd "${srcdir}"/code/build
make DESTDIR="$pkgdir" install
}
fatx.patch
--- CMakeLists.txt 2024-12-05 13:19:00
+++ CMakeLists.txt 2024-12-05 13:19:00
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.0)
project(
fatx
- VERSION 1.17
+ VERSION 1.18
LANGUAGES C CXX)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
if(CMAKE_BUILD_TYPE STREQUAL "")
--- CMakeLists.txt 2024-12-05 13:19:00
+++ CMakeLists.txt 2024-12-05 13:19:00
@@ -32,5 +32,5 @@
add_compile_options(
-D_FILE_OFFSET_BITS=64
- -std=c++2b
+ -std=c++20
-fdiagnostics-color
-Werror
--- CMakeLists.txt 2024-12-05 13:19:00
+++ CMakeLists.txt 2024-12-05 13:19:00
@@ -192,11 +192,11 @@
${i} ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink fatx ${i}
DEPENDS fatx)
-install(FILES ${PROJECT_BINARY_DIR}/${i} TYPE SBIN)
+install(FILES ${PROJECT_BINARY_DIR}/${i} TYPE BIN)
endforeach(i)
include(GNUInstallDirs)
-install(TARGETS fatx RUNTIME DESTINATION sbin)
+install(TARGETS fatx RUNTIME DESTINATION bin)
install(DIRECTORY man8 TYPE MAN)
install(
FILES README
--- src/fatx.hpp 2024-12-05 13:19:00
+++ src/fatx.hpp 2024-12-05 13:19:00
@@ -56,13 +56,14 @@
-#include <fstream>
-#include <iostream>
-#include <filesystem>
-#include <thread>
-#include <string>
-#include <vector>
-#include <memory>
-#include <map>
-#include <set>
-#include <cassert>
-#include <functional>
-#include <cstdint>
-#include <shared_mutex>
+#include <bitset>
+#include <cassert>
+#include <cstdint>
+#include <filesystem>
+#include <fstream>
+#include <functional>
+#include <iostream>
+#include <map>
+#include <memory>
+#include <set>
+#include <shared_mutex>
+#include <string>
+#include <thread>
+#include <vector>
Pinned Comments
Bakasura commented on 2021-07-24 22:05 (UTC)
@everyone this package works again!