libtalloc: add support for building static library
This commit is contained in:
parent
8facf9f01a
commit
7c1ac2095d
@ -2,11 +2,11 @@ TERMUX_PKG_HOMEPAGE=https://talloc.samba.org/talloc/doc/html/index.html
|
|||||||
TERMUX_PKG_DESCRIPTION="Hierarchical, reference counted memory pool system with destructors"
|
TERMUX_PKG_DESCRIPTION="Hierarchical, reference counted memory pool system with destructors"
|
||||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||||
TERMUX_PKG_VERSION=2.1.14
|
TERMUX_PKG_VERSION=2.1.14
|
||||||
TERMUX_PKG_REVISION=2
|
TERMUX_PKG_REVISION=3
|
||||||
|
TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.tar.gz
|
||||||
TERMUX_PKG_SHA256=b185602756a628bac507fa8af8b9df92ace69d27c0add5dab93190ad7c3367ce
|
TERMUX_PKG_SHA256=b185602756a628bac507fa8af8b9df92ace69d27c0add5dab93190ad7c3367ce
|
||||||
TERMUX_PKG_BREAKS="libtalloc-dev"
|
TERMUX_PKG_BREAKS="libtalloc-dev"
|
||||||
TERMUX_PKG_REPLACES="libtalloc-dev"
|
TERMUX_PKG_REPLACES="libtalloc-dev"
|
||||||
TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.tar.gz
|
|
||||||
TERMUX_PKG_BUILD_IN_SRC=true
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
|
||||||
termux_step_configure() {
|
termux_step_configure() {
|
||||||
@ -58,3 +58,9 @@ EOF
|
|||||||
--cross-compile \
|
--cross-compile \
|
||||||
--cross-answers=cross-answers.txt
|
--cross-answers=cross-answers.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
termux_step_post_make_install() {
|
||||||
|
cd $TERMUX_PKG_SRCDIR/bin/default
|
||||||
|
$AR rcu libtalloc.a talloc_*.o
|
||||||
|
install -Dm600 libtalloc.a $TERMUX_PREFIX/lib/libtalloc.a
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user