termux-packages/x11-packages/libposix-shm/build.sh

20 lines
696 B
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_HOMEPAGE=https://github.com/xeffyr/termux-extra-packages
TERMUX_PKG_DESCRIPTION="A workaround for shm_open() and shm_unlink() for Android"
TERMUX_PKG_VERSION=0.2
2018-09-22 12:48:19 +02:00
TERMUX_PKG_REVISION=2
2018-09-10 00:42:26 +02:00
termux_step_make() {
cp "${TERMUX_PKG_BUILDER_DIR}/posix-shm.c" ./
cp "${TERMUX_PKG_BUILDER_DIR}/posix-shm.h" ./
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -I. -fPIC posix-shm.c -shared -o libposix-shm.so
}
termux_step_make_install() {
mkdir -p "${TERMUX_PREFIX}/include"
mkdir -p "${TERMUX_PREFIX}/lib"
cp -f posix-shm.h "${TERMUX_PREFIX}/include/"
cp -f libposix-shm.so "${TERMUX_PREFIX}/lib/"
}