diff --git a/srcpkgs/clsync/patches/fix-cross.patch b/srcpkgs/clsync/patches/fix-cross.patch new file mode 100644 index 00000000000..d28707698a6 --- /dev/null +++ b/srcpkgs/clsync/patches/fix-cross.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +index 752a022..a99c983 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -96,7 +96,7 @@ compilerflags.h: gencompilerflags + ./gencompilerflags > compilerflags.h + + gencompilerflags: +- +$(CC) $(gencompilerflags_CFLAGS) gencompilerflags.c -o gencompilerflags ++ +$(BUILD_CC) $(gencompilerflags_CFLAGS) gencompilerflags.c -o gencompilerflags + + dist_man_MANS = man/man1/clsync.1 + endif diff --git a/srcpkgs/clsync/template b/srcpkgs/clsync/template index 7346d7ca215..7ce65e30771 100644 --- a/srcpkgs/clsync/template +++ b/srcpkgs/clsync/template @@ -1,8 +1,7 @@ # Template file for 'clsync' pkgname=clsync -version=0.4.4 +version=0.4.5 revision=1 -archs="x86_64 i686 ppc64le" build_style=gnu-configure hostmakedepends="automake libtool pkg-config" makedepends="glib-devel" @@ -10,8 +9,13 @@ short_desc="File live sync daemon based on inotify/kqueue/bsm" maintainer="Orphaned " license="GPL-3.0-or-later" homepage="http://ut.mephi.ru/oss/clsync" -distfiles="https://github.com/xaionaro/clsync/archive/v${version}.tar.gz" -checksum=8553b67b0bb902b5ff05a50195c5b0102a522b771f4ff8bec7495d9406514622 +distfiles="https://github.com/clsync/clsync/archive/v${version}.tar.gz" +checksum=dcf6e45914edac00c660942594f0c8958c6c7b9819c11277b7d9eb596f52cb81 + +if [ "$XBPS_TARGET_LIBC" = musl ]; then + makedepends+=" musl-fts-devel" + LDFLAGS="-lfts" +fi pre_configure() { autoreconf -i