diff --git a/srcpkgs/mimic/patches/musl.patch b/srcpkgs/mimic/patches/musl.patch new file mode 100644 index 0000000000..bbf7702a88 --- /dev/null +++ b/srcpkgs/mimic/patches/musl.patch @@ -0,0 +1,11 @@ +--- src/hts/hts_engine_API/lib/HTS_misc.c.orig 2020-05-06 08:48:23.207180474 -0400 ++++ src/hts/hts_engine_API/lib/HTS_misc.c 2020-05-06 08:49:38.850713440 -0400 +@@ -247,6 +247,8 @@ + fgetpos((FILE *) fp->pointer, &pos); + #if defined(_WIN32) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__ANDROID__) + return (size_t) pos; ++#elif defined(__linux__) && !defined(__GLIBC__) /* musl */ ++ return (size_t) pos.__lldata; + #else + return (size_t) pos.__pos; + #endif /* _WIN32 || __CYGWIN__ || __APPLE__ || __ANDROID__ */ diff --git a/srcpkgs/mimic/template b/srcpkgs/mimic/template index 0d0cf824b8..ed11690e5b 100644 --- a/srcpkgs/mimic/template +++ b/srcpkgs/mimic/template @@ -1,17 +1,19 @@ # Template file for 'mimic' pkgname=mimic -version=1.2.0.2 -revision=4 +version=1.3.0.1 +revision=1 +wrksrc="${pkgname}1-${version}" build_style=gnu-configure configure_args="--enable-shared --enable-static" hostmakedepends="automake libtool pkg-config" -makedepends="alsa-lib-devel icu-devel" +makedepends="alsa-lib-devel icu-devel pcre2-devel" short_desc="Mycroft's lightweight Text-to-speech engine" maintainer="Rubén Santos " -license="custom" +license="custom: permissive BSD-like" homepage="https://github.com/MycroftAI/mimic" +changelog="https://github.com/MycroftAI/mimic1/releases" distfiles="https://github.com/MycroftAI/mimic/archive/${version}.tar.gz" -checksum=6adcc9911b09d6e9513add41ad9dfc0893ece277f556419869520a0f0708c102 +checksum=9041f5c7d3720899c90c890ada179c92c3b542b90bb655c247e4a4835df79249 pre_configure() { ./autogen.sh