Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_HOMEPAGE=http://www.gnupg.org/related_software/libgpg-error/ |
2 | TERMUX_PKG_DESCRIPTION="Small library that defines common error values for all GnuPG components" | |
5f2951be FF |
3 | TERMUX_PKG_VERSION=1.21 |
4 | TERMUX_PKG_BUILD_REVISION=1 | |
59f0d218 FF |
5 | TERMUX_PKG_SRCURL=ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-${TERMUX_PKG_VERSION}.tar.bz2 |
6 | TERMUX_PKG_RM_AFTER_INSTALL="share/common-lisp" | |
7 | ||
5f2951be FF |
8 | termux_step_post_extract_package () { |
9 | # Upstream only has Android definitions for platform-specific lock objects. | |
10 | # See https://lists.gnupg.org/pipermail/gnupg-devel/2014-January/028203.html | |
11 | # for how to generate a lock-obj header file on devices. | |
12 | ||
13 | # For aarch64 this was generated on a device: | |
14 | cp $TERMUX_PKG_BUILDER_DIR/lock-obj-pub.aarch64-unknown-linux-android.h $TERMUX_PKG_SRCDIR/src/syscfg/ | |
15 | ||
16 | if [ $TERMUX_ARCH = i686 ]; then | |
17 | # Android i686 has same config as arm (verified by generating a file on a i686 device): | |
18 | cp $TERMUX_PKG_SRCDIR/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h \ | |
19 | $TERMUX_PKG_SRCDIR/src/syscfg/lock-obj-pub.linux-android.h | |
20 | fi | |
59f0d218 | 21 | } |