termux-packages/packages/libgpg-error/build.sh

27 lines
1.3 KiB
Bash
Raw Normal View History

2016-12-23 21:46:16 +01:00
TERMUX_PKG_HOMEPAGE=https://www.gnupg.org/related_software/libgpg-error/
2015-06-13 01:03:31 +02:00
TERMUX_PKG_DESCRIPTION="Small library that defines common error values for all GnuPG components"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="LGPL-2.0"
2019-01-19 03:12:42 +01:00
TERMUX_PKG_VERSION=1.34
TERMUX_PKG_SHA256=0680799dee71b86b2f435efb825391eb040ce2704b057f6bd3dcc47fbc398c81
2016-11-19 19:41:14 +01:00
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${TERMUX_PKG_VERSION}.tar.bz2
2015-06-13 01:03:31 +02:00
TERMUX_PKG_RM_AFTER_INSTALL="share/common-lisp"
termux_step_post_extract_package () {
# Upstream only has Android definitions for platform-specific lock objects.
# See https://lists.gnupg.org/pipermail/gnupg-devel/2014-January/028203.html
# for how to generate a lock-obj header file on devices.
# For aarch64 this was generated on a device:
cp $TERMUX_PKG_BUILDER_DIR/lock-obj-pub.aarch64-unknown-linux-android.h $TERMUX_PKG_SRCDIR/src/syscfg/
if [ $TERMUX_ARCH = i686 ]; then
# Android i686 has same config as arm (verified by generating a file on a i686 device):
cp $TERMUX_PKG_SRCDIR/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h \
$TERMUX_PKG_SRCDIR/src/syscfg/lock-obj-pub.linux-android.h
2016-06-19 21:00:55 +02:00
elif [ $TERMUX_ARCH = x86_64 ]; then
# FIXME: Generate on device.
cp $TERMUX_PKG_BUILDER_DIR/lock-obj-pub.aarch64-unknown-linux-android.h \
$TERMUX_PKG_SRCDIR/src/syscfg/lock-obj-pub.linux-android.h
fi
2015-06-13 01:03:31 +02:00
}