2022-02-11 10:26:36 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://man7.org/linux/man-pages/man7/sem_overview.7.html
|
|
|
|
TERMUX_PKG_DESCRIPTION="Shared library for the posix semaphore system function"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
|
|
TERMUX_PKG_VERSION=0.1
|
2022-02-12 05:40:04 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2022-02-11 10:26:36 +01:00
|
|
|
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
|
|
|
termux_step_make() {
|
2022-02-11 11:15:02 +01:00
|
|
|
$CC $CFLAGS $CPPFLAGS -DPREFIX="\"$TERMUX_PREFIX\"" \
|
|
|
|
-c $TERMUX_PKG_BUILDER_DIR/semaphore.c
|
2022-02-11 10:26:36 +01:00
|
|
|
$CC $LDFLAGS -shared semaphore.o -o libandroid-posix-semaphore.so
|
|
|
|
$AR rcu libandroid-posix-semaphore.a semaphore.o
|
|
|
|
cp -f $TERMUX_PKG_BUILDER_DIR/LICENSE $TERMUX_PKG_SRCDIR/
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm600 libandroid-posix-semaphore.a $TERMUX_PREFIX/lib/libandroid-posix-semaphore.a
|
|
|
|
install -Dm600 libandroid-posix-semaphore.so $TERMUX_PREFIX/lib/libandroid-posix-semaphore.so
|
|
|
|
}
|