argp: Add package (closes #1883)
This commit is contained in:
parent
2523abf65c
commit
07ec1ef17b
11
packages/argp/argp-fmtstream.h.patch
Normal file
11
packages/argp/argp-fmtstream.h.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./argp-fmtstream.h.orig 2003-12-11 09:37:05.000000000 +0100
|
||||
+++ ./argp-fmtstream.h 2011-08-12 11:56:43.000000000 +0200
|
||||
@@ -192,7 +192,7 @@
|
||||
extern int _argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
|
||||
extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
|
||||
|
||||
-#ifdef __OPTIMIZE__
|
||||
+#if defined(__OPTIMIZE__) && !defined(__clang__)
|
||||
/* Inline versions of above routines. */
|
||||
|
||||
#if !_LIBC
|
12
packages/argp/build.sh
Normal file
12
packages/argp/build.sh
Normal file
@ -0,0 +1,12 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://www.lysator.liu.se/~nisse/misc/
|
||||
TERMUX_PKG_DESCRIPTION="Standalone version of arguments parsing functions from GLIBC"
|
||||
TERMUX_PKG_VERSION=1.3
|
||||
TERMUX_PKG_SHA256=dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be
|
||||
TERMUX_PKG_SRCURL=https://www.lysator.liu.se/~nisse/misc/argp-standalone-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_KEEP_STATIC_LIBRARIES=true
|
||||
TERMUX_PKG_NO_DEVELSPLIT=true
|
||||
|
||||
termux_step_post_make_install() {
|
||||
cp libargp.a $TERMUX_PREFIX/lib
|
||||
cp $TERMUX_PKG_SRCDIR/argp.h $TERMUX_PREFIX/include
|
||||
}
|
Loading…
Reference in New Issue
Block a user