termux-packages/packages/libunwind/build.sh
Fredrik Fornwall 5204c69d35 libunwind: Remove after building
When building arm c++ code we do not want this libunwind to be used.
2017-08-08 12:18:28 +02:00

20 lines
763 B
Bash

TERMUX_PKG_HOMEPAGE=http://www.nongnu.org/libunwind/
TERMUX_PKG_DESCRIPTION="Library to determine the call-chain of a program"
# Use master and the commit date as version suffix:
local _COMMIT=2b8ab794b3a636c05396fdbaebbba25d8aa4722a
TERMUX_PKG_VERSION=1.2.20170304
TERMUX_PKG_SRCURL=https://github.com/libunwind/libunwind/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=fdbe8f0348a0db86663fdf7a363fcb281fef220f85bd751db8ed13aca00c062d
TERMUX_PKG_FOLDERNAME=libunwind-$_COMMIT
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-tests --disable-coredump"
termux_step_post_extract_package() {
NOCONFIGURE=1 ./autogen.sh
}
termux_step_post_massage() {
# Hack to fix problem with building arm c++ code
# which should not use this libunwind:
rm $TERMUX_PREFIX/lib/libunwind*
}