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"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-05-04 18:58:33 +02:00
|
|
|
TERMUX_PKG_VERSION=1.42
|
2019-08-16 20:35:49 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${TERMUX_PKG_VERSION}.tar.bz2
|
2021-05-04 18:58:33 +02:00
|
|
|
TERMUX_PKG_SHA256=fc07e70f6c615f8c4f590a8e37a9b8dd2e2ca1e9408f8e60459c67452b925e23
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libgpg-error-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libgpg-error-dev"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/common-lisp"
|
|
|
|
|
2020-07-16 23:58:48 +02:00
|
|
|
termux_step_post_get_source() {
|
2016-03-23 12:32:44 +01:00
|
|
|
# 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
|
2016-03-23 12:32:44 +01:00
|
|
|
fi
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|
2019-08-16 20:19:21 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
autoreconf -fi
|
2019-08-16 20:35:49 +02:00
|
|
|
# USE_POSIX_THREADS_WEAK is being enabled for on-device build and causes
|
|
|
|
# errors, so force-disable it.
|
|
|
|
sed -i 's/USE_POSIX_THREADS_WEAK/DONT_USE_POSIX_THREADS_WEAK/g' configure
|
2019-08-16 20:19:21 +02:00
|
|
|
}
|