diff options
-rw-r--r-- | t1utils/LICENSE | 22 | ||||
-rw-r--r-- | t1utils/PKGBUILD | 41 | ||||
-rw-r--r-- | t1utils/memmem-decl.patch | 31 |
3 files changed, 94 insertions, 0 deletions
diff --git a/t1utils/LICENSE b/t1utils/LICENSE new file mode 100644 index 00000000..43f03171 --- /dev/null +++ b/t1utils/LICENSE @@ -0,0 +1,22 @@ +The README file includes the following notices: + + Changes since version 1.2 (c) 1998-2000 Eddie Kohler, under the + same redistribution copyright as I. Lee Hetherington's. See below + for I. Lee Hetherington's original README from 1992, updated + slightly for today's t1utils. + + Eddie Kohler + eddietwo@lcs.mit.edu + + Copyright (c) 1992 by I. Lee Hetherington, all rights reserved. + + Permission is hereby granted to use, modify, and distribute this + program for any purpose provided this copyright notice and the one + below remain intact. + + Note that these tools should not be used to illegally copy type-1 + font programs. Typeface design is an intricate art that should be + rewarded. + + I. Lee Hetherington + ilh@lcs.mit.edu diff --git a/t1utils/PKGBUILD b/t1utils/PKGBUILD new file mode 100644 index 00000000..02e885ff --- /dev/null +++ b/t1utils/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Evgeniy Alekseev <arcanis at archlinux dot org> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Simo Leone <neotuli@gmail.com> + +pkgname=t1utils +pkgver=1.41 +pkgrel=3 +pkgdesc="A collection of simple Type 1 font manipulation programs" +arch=('x86_64') +url="https://www.lcdf.org/~eddietwo/type/#t1utils" +license=("custom") +depends=('glibc') +source=("https://www.lcdf.org/~eddietwo/type/$pkgname-$pkgver.tar.gz" + "memmem-decl.patch::https://github.com/kohler/t1utils/commit/3f1ddda424353f0f926dd28efa47b0ac61556ce8.patch" + "LICENSE") +sha512sums=('b532d3af38a73903a512eb1297ba7510747dcbe8362acc4a0f20f2a3c786d82d8f5b22997ed3867114f33153a34cdd71c4c8e6a093db3cecc3825b6e4725a00b' + '573a15133e8227100820039aaf5dea12d038674dd486510a38647e9f500c9de2c16034d99c8b26444f6c7253fe788833aa6dbd3f46be389bc1ca1b031deb51c8' + '82dbc206391a9f9116038be74360455c960ddb76e35fdeb123044f74c74014223c3b35d7f1894ae7224c7a9e091acc1ff00df2a43d38a856b4f75988fb4dbd3e') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # FS#57999 and https://github.com/kohler/t1utils/issues/8 + patch -p1 -i "${srcdir}/memmem-decl.patch" + autoreconf +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + diff --git a/t1utils/memmem-decl.patch b/t1utils/memmem-decl.patch new file mode 100644 index 00000000..8e0e25dc --- /dev/null +++ b/t1utils/memmem-decl.patch @@ -0,0 +1,31 @@ +From 3f1ddda424353f0f926dd28efa47b0ac61556ce8 Mon Sep 17 00:00:00 2001 +From: Eddie Kohler <ekohler@gmail.com> +Date: Wed, 16 Aug 2017 12:37:34 -0400 +Subject: [PATCH] Check for memmem declaration; sometimes it is not declared by + default. + +--- + configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 5b4e3ff..b4dc4fb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -19,6 +19,7 @@ dnl strerror()? + dnl + + AC_REPLACE_FUNCS([strerror memmem]) ++AC_CHECK_DECLS([memmem]) + + + dnl +@@ -88,7 +89,7 @@ char* strerror(int errno); + #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 |