diff --git a/srcpkgs/partclone/patches/musl.patch b/srcpkgs/partclone/patches/musl.patch new file mode 100644 index 0000000000..7efb4f69f4 --- /dev/null +++ b/srcpkgs/partclone/patches/musl.patch @@ -0,0 +1,34 @@ +--- src/main.c.orig ++++ src/main.c +@@ -20,7 +20,6 @@ + #include + #include + #include +-#include + #include + #include + #include +--- src/exfat/platform.h.orig ++++ src/exfat/platform.h +@@ -24,7 +24,7 @@ + #ifndef PLATFORM_H_INCLUDED + #define PLATFORM_H_INCLUDED + +-#if defined(__GLIBC__) ++#if defined(__GLIBC__) || 1 + + #include + #include +--- src/btrfs/rbtree.h.orig ++++ src/btrfs/rbtree.h +@@ -38,6 +38,10 @@ + extern "C" { + #endif + ++#ifndef __always_inline ++#define __always_inline inline __attribute__((always_inline)) ++#endif ++ + struct rb_node { + unsigned long __rb_parent_color; + struct rb_node *rb_right; diff --git a/srcpkgs/partclone/template b/srcpkgs/partclone/template new file mode 100644 index 0000000000..7a3c64f48a --- /dev/null +++ b/srcpkgs/partclone/template @@ -0,0 +1,23 @@ +# Template file for 'partclone' +pkgname=partclone +version=0.2.79 +revision=1 +build_style=gnu-configure +configure_args="--disable-rpath --enable-ncursesw + --enable-extfs + --enable-hfsp + --enable-fat + --enable-exfat + --enable-ntfs + --enable-btrfs + --enable-minix +" +hostmakedepends="pkg-config" +makedepends="e2fsprogs-devel libuuid-devel ncurses-devel ntfs-3g-devel" +short_desc="File system clone and restore utilities" +maintainer="beefcurtains " +license="GPL-2" +homepage="http://www.${pkgname}.org/" +distfiles="https://github.com/Thomas-Tsai/${pkgname}/archive/${version}.tar.gz" +checksum=9d474326952c6ef7901c4012bd9d240c8971b19b1ab2c33a8c5e3dc8fbfc8bee +CFLAGS="-DBTRFS_DISABLE_BACKTRACE"