termux-elf-cleaner: Move to standalone repo
[termux-packages] / packages / gnupg / build.sh
1 TERMUX_PKG_HOMEPAGE=http://www.gnupg.org/
2 TERMUX_PKG_DESCRIPTION="OpenPGP implementation for encrypting and signing data and communication"
3 TERMUX_PKG_VERSION=1.4.21
4 TERMUX_PKG_REVISION=1
5 TERMUX_PKG_SRCURL=ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-${TERMUX_PKG_VERSION}.tar.bz2
6 TERMUX_PKG_SHA256=6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276
7 # disable readline since gnupg is used in bootstrap, so nice to avoid readline+ncurses dependencies.
8 # ac_cv_sys_symbol_underscore=no needed for i686 build to avoid "undefined reference to `mpihelp_sub_n'" errors
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-endian-check --without-readline ac_cv_sys_symbol_underscore=no"
10 # ac_cv_header_sys_shm_h is to avoid USE_SHM_COPROCESSING getting defined due to <sys/shm.h>,
11 # which it does on android-21 (but shmat(2) does not exist)
12 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_header_sys_shm_h=no"
13 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-bzip2"
14 # Assembly issues on at least arm:
15 TERMUX_PKG_CLANG=no
16
17 termux_step_pre_configure() {
18 CFLAGS+=" -D__LITTLE_ENDIAN__"
19 }