Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_VERSION=0.161 |
2 | TERMUX_PKG_HOMEPAGE=https://fedorahosted.org/elfutils/ | |
3 | TERMUX_PKG_DESCRIPTION="ELF object file access library" | |
4 | TERMUX_PKG_SRCURL=https://fedorahosted.org/releases/e/l/elfutils/${TERMUX_PKG_VERSION}/elfutils-${TERMUX_PKG_VERSION}.tar.bz2 | |
5 | ||
6 | LDFLAGS+=" -lintl" | |
7 | CFLAGS+=" -DTERMUX_EXPOSE_MEMPCPY=1" | |
8 | ||
9 | termux_step_pre_make () { | |
10 | export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_BUILDDIR/libelf | |
11 | cd $TERMUX_PKG_BUILDDIR | |
12 | } | |
13 | ||
14 | termux_step_post_make_install () { | |
15 | make install-includeHEADERS | |
16 | } | |
17 | ||
18 | termux_step_post_massage () { | |
19 | # Remove to avoid spurios linking to libelf (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=10648): | |
20 | rm -f $TERMUX_PREFIX/lib/libelf* | |
21 | } |