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