diff options
author | Dan Theisen <djt@hxx.in> | 2018-09-01 18:30:45 -0700 |
---|---|---|
committer | Dan Theisen <djt@hxx.in> | 2018-09-01 18:30:45 -0700 |
commit | 0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f (patch) | |
tree | 4c4c11d95dc3dedc9ce13dc34955751fb9bdd41b | |
parent | 337e02c6d05938e555aa2f69ca653dabc251e6ff (diff) | |
download | packages-0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f.tar.gz packages-0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f.tar.bz2 packages-0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f.tar.xz packages-0561bf1045467f95e2fcffd7e2b5bbdd82c7c81f.zip |
user/figlet: new package, fixed up from alpine
-rw-r--r-- | user/figlet/APKBUILD | 34 | ||||
-rw-r--r-- | user/figlet/musl-fix-cplusplus-decls.patch | 22 |
2 files changed, 56 insertions, 0 deletions
diff --git a/user/figlet/APKBUILD b/user/figlet/APKBUILD new file mode 100644 index 000000000..1d44369c4 --- /dev/null +++ b/user/figlet/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Dan Theisen <djt@hxx.in> +pkgname=figlet +pkgver=2.2.5 +pkgrel=0 +pkgdesc="A tool for making large ASCII art letters out of text" +url="http://www.figlet.org/" +arch="all" +license="BSD-3-Clause" +depends="" +makedepends="" +subpackages="$pkgname-doc" +source="ftp://ftp.figlet.org/pub/figlet/program/unix/${pkgname}-${pkgver}.tar.gz + musl-fix-cplusplus-decls.patch" + +build() { + cd "$builddir" + make DEFAULTFONTDIR=/usr/share/figlet/fonts all +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="${pkgdir}" BINDIR=/usr/bin MANDIR=/usr/share/man \ + DEFAULTFONTDIR=/usr/share/figlet/fonts install + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +sha512sums="bb9610fd89a51dd3e65c485653fe1292f47dbca7cb9a05af4ce317f5d776bb346ae455aec07fc37c290f6658639920fd7c431c1135a0f4d456a21c0bd25f99fb figlet-2.2.5.tar.gz +4ac1788686ff89c27747fe10b43de90f43c2aaa40476610cf5af52ff43c00e180b91acc1646658330fd534d223cef4643ab3c7f7bf0f6c9b5861601b1d8a05fe musl-fix-cplusplus-decls.patch" diff --git a/user/figlet/musl-fix-cplusplus-decls.patch b/user/figlet/musl-fix-cplusplus-decls.patch new file mode 100644 index 000000000..2a08327ea --- /dev/null +++ b/user/figlet/musl-fix-cplusplus-decls.patch @@ -0,0 +1,22 @@ +--- figlet-2.2.5.orig/utf8.h ++++ figlet-2.2.5/utf8.h +@@ -27,13 +27,17 @@ + #define UTF8_IGNORE_ERROR 0x01 + #define UTF8_SKIP_BOM 0x02 + +-__BEGIN_DECLS ++#ifdef __cplusplus ++extern "C" { ++#endif + + size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out, + size_t outsize, int flags); + size_t wchar_to_utf8(const wchar_t *in, size_t insize, char *out, + size_t outsize, int flags); + +-__END_DECLS ++#ifdef __cplusplus ++} ++#endif + + #endif /* !_UTF8_H_ */ |