diff --git a/srcpkgs/t1utils/patches/memmem-declaration.patch b/srcpkgs/t1utils/patches/memmem-declaration.patch new file mode 100644 index 00000000000..ae182c1fe8b --- /dev/null +++ b/srcpkgs/t1utils/patches/memmem-declaration.patch @@ -0,0 +1,22 @@ +https://github.com/kohler/t1utils/issues/8 +https://github.com/kohler/t1utils/commit/3f1ddda424353f0f926dd28efa47b0ac61556ce8 + +--- configure.ac.orig 2017-08-16 18:27:16.000000000 +0200 ++++ configure.ac 2017-09-14 09:09:17.077248094 +0200 +@@ -19,6 +19,7 @@ + dnl + + AC_REPLACE_FUNCS([strerror memmem]) ++AC_CHECK_DECLS([memmem]) + + + dnl +@@ -88,7 +89,7 @@ + #endif + + /* Prototype memmem if we don't have it. */ +-#if !HAVE_MEMMEM ++#if !HAVE_MEMMEM || !HAVE_DECL_MEMMEM + void* memmem(const void* haystack, size_t haystack_len, + const void* needle, size_t needle_len); + #endif diff --git a/srcpkgs/t1utils/template b/srcpkgs/t1utils/template new file mode 100644 index 00000000000..78709fe513e --- /dev/null +++ b/srcpkgs/t1utils/template @@ -0,0 +1,20 @@ +# Template file for 't1utils' +pkgname=t1utils +version=1.41 +revision=1 +build_style="gnu-configure" +hostmakedepends="automake autoconf" +short_desc="Type 1 font utilities" +maintainer="newbluemoon " +license="custom:Click" +homepage="https://www.lcdf.org/type/#t1utils" +distfiles="https://www.lcdf.org/type/${pkgname}-${version}.tar.gz" +checksum=fc5edd7e829902b3b685886382fed690d533681c0ab218a387c9e47606623427 + +pre_configure() { + autoreconf -fi +} + +post_install() { + vlicense LICENSE +}