From 76920f054de99aa0dd604103684b03c008b58102 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sun, 14 Feb 2016 20:51:05 +0100 Subject: [PATCH] mtree: fix musl build --- srcpkgs/mtree/template | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/srcpkgs/mtree/template b/srcpkgs/mtree/template index 8f6f2bce1ff..414fe7090b6 100644 --- a/srcpkgs/mtree/template +++ b/srcpkgs/mtree/template @@ -13,7 +13,19 @@ homepage="https://github.com/archiecobbs/mtree-port/" distfiles="https://github.com/archiecobbs/mtree-port/archive/${version}.tar.gz" checksum=bbbf2ae5f1f99119b3cb7f55f90015b0e06238cde2801c9990521109b2529eed +case "$XBPS_TARGET_MACHINE" in + *-musl) makedepends+=" musl-fts-devel" + ;; +esac + pre_configure() { + case "$XBPS_TARGET_MACHINE" in + *-musl) + sed -i '$amtree_CPPFLAGS=-D_STAT_VER_LINUX' Makefile.am + sed -i '$amtree_LDADD=-lfts' Makefile.am + sed -i 's/strtoq/strtoll/g' spec.c + ;; + esac ./autogen.sh }