new package: libthread-db
This commit is contained in:
parent
ece5419863
commit
4fa8454de4
24
packages/libthread-db/build.sh
Normal file
24
packages/libthread-db/build.sh
Normal file
@ -0,0 +1,24 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://android.googlesource.com/platform/ndk/
|
||||
TERMUX_PKG_DESCRIPTION="Thread debugging library"
|
||||
TERMUX_PKG_LICENSE="Apache-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=22 # removed in NDK r23
|
||||
TERMUX_PKG_SRCURL=https://android.googlesource.com/platform/ndk/+archive/refs/tags/ndk-r${TERMUX_PKG_VERSION}/sources/android/libthread_db.tar.gz
|
||||
TERMUX_PKG_SHA256=SKIP_CHECKSUM
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_extract_src_archive() {
|
||||
local file="$TERMUX_PKG_CACHEDIR/$(basename "${TERMUX_PKG_SRCURL}")"
|
||||
mkdir -p "$TERMUX_PKG_SRCDIR"
|
||||
tar xf "$file" -C "$TERMUX_PKG_SRCDIR"
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
$CC $CPPFLAGS -I. $CFLAGS libthread_db.c -shared -o libthread_db.so $LDFLAGS
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm600 -t $TERMUX_PREFIX/include "$TERMUX_PKG_SRCDIR/thread_db.h"
|
||||
install -Dm600 -t $TERMUX_PREFIX/lib "$TERMUX_PKG_BUILDDIR/libthread_db.so"
|
||||
ln -sf $TERMUX_PREFIX/lib/libthread_db.so $TERMUX_PREFIX/lib/libthread_db.so.1
|
||||
}
|
Loading…
Reference in New Issue
Block a user