From 0f99f9060c573c918029a20299533a1d729cd1a9 Mon Sep 17 00:00:00 2001 From: Foxlet Date: Wed, 6 Oct 2021 22:56:31 -0400 Subject: [PATCH] New package: ntfs2btrfs-20210923 --- ...Use-GNUInstallDirs-to-determine-sbin.patch | 23 +++++++++++++++++++ srcpkgs/ntfs2btrfs/template | 14 +++++++++++ 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/ntfs2btrfs/patches/0001-Use-GNUInstallDirs-to-determine-sbin.patch create mode 100644 srcpkgs/ntfs2btrfs/template diff --git a/srcpkgs/ntfs2btrfs/patches/0001-Use-GNUInstallDirs-to-determine-sbin.patch b/srcpkgs/ntfs2btrfs/patches/0001-Use-GNUInstallDirs-to-determine-sbin.patch new file mode 100644 index 000000000000..4f3412240f52 --- /dev/null +++ b/srcpkgs/ntfs2btrfs/patches/0001-Use-GNUInstallDirs-to-determine-sbin.patch @@ -0,0 +1,23 @@ +From f97247434ecda2cd2c451da5c73c3af98dfaea35 Mon Sep 17 00:00:00 2001 +From: Mark Harmstone +Date: Thu, 7 Oct 2021 17:59:35 +0100 +Subject: [PATCH] CMakeLists.txt: use GNUInstallDirs to determine sbin location + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cfaa571..17ded78 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -89,5 +89,5 @@ else() + target_compile_options(ntfs2btrfs PRIVATE -Wall -Wextra -Wno-address-of-packed-member -Wconversion -Wno-unknown-pragmas -Werror=pointer-arith) + endif() + +-install(TARGETS ntfs2btrfs DESTINATION sbin) ++install(TARGETS ntfs2btrfs DESTINATION ${CMAKE_INSTALL_SBINDIR}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ntfs2btrfs.8 DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) +-- +2.33.0 + diff --git a/srcpkgs/ntfs2btrfs/template b/srcpkgs/ntfs2btrfs/template new file mode 100644 index 000000000000..c87a81de187d --- /dev/null +++ b/srcpkgs/ntfs2btrfs/template @@ -0,0 +1,14 @@ +# Template file for 'ntfs2btrfs' +pkgname=ntfs2btrfs +version=20210923 +revision=1 +build_style=cmake +configure_args="-DCMAKE_INSTALL_SBINDIR=bin" +hostmakedepends="pkg-config" +makedepends="fmt-devel zlib-devel lzo-devel libzstd-devel" +short_desc="Filesystem converter for Microsoft's NTFS" +maintainer="Foxlet " +license="GPL-2.0-only" +homepage="https://github.com/maharmstone/ntfs2btrfs" +distfiles="https://github.com/maharmstone/ntfs2btrfs/archive/${version}.tar.gz" +checksum=e07cc1cad634d59e58111bf993683f02a7504913fac1ef8dd33fd06ebf9140c1