From 2ca01971077711ac4558feb8dd5a49fc9ff33096 Mon Sep 17 00:00:00 2001 From: nafZZZob <130201394+NafzorOB@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:35:51 -0500 Subject: [PATCH 1/3] Create template add dwarfs template --- srcpkgs/dwarfs/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/dwarfs/template diff --git a/srcpkgs/dwarfs/template b/srcpkgs/dwarfs/template new file mode 100644 index 0000000000000..8a837c99b1bf0 --- /dev/null +++ b/srcpkgs/dwarfs/template @@ -0,0 +1,15 @@ +# Template file for 'dwarfs' +pkgname=dwarfs +version=0.7.5 +revision=1 +build_style=cmake +configure_args="-DWITH_TESTS=ON" +hostmakedepends="ruby-ronn git pkg-config utfcpp" +makedepends="boost-devel fuse3-devel double-conversion-devel libevent-devel jemalloc-devel libarchive-devel glog-devel" +depends="fuse3" +short_desc="Fast high compression read-only file system" +maintainer="NafzorOB " +license="GPL-3.0-or-later" +homepage="https://github.com/mhx/dwarfs" +distfiles="https://github.com/mhx/dwarfs/releases/download/v${version}/dwarfs-${version}.tar.xz" +checksum=31fabc3a3a8233e247f77149a7c702b79c4105dc814459fef85d4c4747a2b4f0 From 766a251b9e073b44e3a143674af12e1845b54ec2 Mon Sep 17 00:00:00 2001 From: nafZZZob <130201394+NafzorOB@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:37:10 -0500 Subject: [PATCH 2/3] Create sbin-to-bin.patch add sbin-to-bin patch, this changes the installation directory from the dwarfs binary from /usr/sbin to /usr/bin --- srcpkgs/dwarfs/patches/sbin-to-bin.patch | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/dwarfs/patches/sbin-to-bin.patch diff --git a/srcpkgs/dwarfs/patches/sbin-to-bin.patch b/srcpkgs/dwarfs/patches/sbin-to-bin.patch new file mode 100644 index 0000000000000..5186785a70c32 --- /dev/null +++ b/srcpkgs/dwarfs/patches/sbin-to-bin.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4dd4ac0..efda8cb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -574,8 +574,8 @@ if(FUSE3_FOUND OR WINFSP) + COMMAND ${CMAKE_COMMAND} -E create_symlink dwarfs mount.dwarfs + DEPENDS dwarfs-bin) + list(APPEND SYMLINKS mount.dwarfs) +- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mount.dwarfs DESTINATION sbin) +- install(TARGETS dwarfs-bin RUNTIME DESTINATION sbin) ++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mount.dwarfs DESTINATION bin) ++ install(TARGETS dwarfs-bin RUNTIME DESTINATION bin) + endif() + list(APPEND BINARY_TARGETS dwarfs-bin) + list(APPEND MAIN_TARGETS dwarfs_main) +@@ -596,8 +596,8 @@ if(FUSE_FOUND AND (WITH_LEGACY_FUSE OR NOT FUSE3_FOUND)) + COMMAND ${CMAKE_COMMAND} -E create_symlink dwarfs2 mount.dwarfs2 + DEPENDS dwarfs2-bin) + list(APPEND SYMLINKS mount.dwarfs2) +- install(TARGETS dwarfs2-bin RUNTIME DESTINATION sbin) +- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mount.dwarfs2 DESTINATION sbin) ++ install(TARGETS dwarfs2-bin RUNTIME DESTINATION bin) ++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mount.dwarfs2 DESTINATION bin) + list(APPEND BINARY_TARGETS dwarfs2-bin) + list(APPEND MAIN_TARGETS dwarfs2_main) + endif() From 2c46bfa126feb607f4c89be72b4deeaa71963b4d Mon Sep 17 00:00:00 2001 From: nafZZZob Date: Fri, 19 Jan 2024 18:14:46 -0500 Subject: [PATCH 3/3] add utfcpp this library is required for dwarfs to be compiled --- srcpkgs/utfcpp/template | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/utfcpp/template diff --git a/srcpkgs/utfcpp/template b/srcpkgs/utfcpp/template new file mode 100644 index 0000000000000..3bac76bfd59a5 --- /dev/null +++ b/srcpkgs/utfcpp/template @@ -0,0 +1,11 @@ +# Template file for 'utfcpp' +pkgname=utfcpp +version=4.0.5 +revision=1 +build_style=cmake +short_desc="UTF-8 with C++ in a Portable Way" +maintainer="NafzorOB " +license="BSL-1.0" +homepage="https://github.com/nemtrif/utfcpp" +distfiles="https://github.com/nemtrif/utfcpp/archive/refs/tags/v${version}.tar.gz" +checksum=ffc668a310e77607d393f3c18b32715f223da1eac4c4d6e0579a11df8e6b59cf