2019-08-28 14:06:58 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://man7.org/linux/man-pages/man3/posix_spawn.3.html
|
|
|
|
TERMUX_PKG_DESCRIPTION="Shared library for the posix_spawn system function"
|
2019-08-29 20:31:44 +02:00
|
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
|
|
|
TERMUX_PKG_VERSION=0.2
|
2019-08-28 14:06:58 +02:00
|
|
|
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2020-02-16 23:11:01 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2019-08-28 14:06:58 +02:00
|
|
|
|
|
|
|
termux_step_make() {
|
2020-02-16 23:11:01 +01:00
|
|
|
$CXX $CFLAGS $CPPFLAGS -I$TERMUX_PKG_BUILDER_DIR -c $TERMUX_PKG_BUILDER_DIR/posix_spawn.cpp
|
|
|
|
$CXX $LDFLAGS -shared posix_spawn.o -o libandroid-spawn.so
|
2019-08-28 14:06:58 +02:00
|
|
|
$AR rcu libandroid-spawn.a posix_spawn.o
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm600 $TERMUX_PKG_BUILDER_DIR/posix_spawn.h $TERMUX_PREFIX/include/spawn.h
|
|
|
|
install -Dm600 libandroid-spawn.a $TERMUX_PREFIX/lib/libandroid-spawn.a
|
|
|
|
install -Dm600 libandroid-spawn.so $TERMUX_PREFIX/lib/libandroid-spawn.so
|
|
|
|
}
|