simulavr: fix conflicts and docs location

moves its headers from `$PREFIX/include` to `$PREFIX/include/simulavr`
to stop e.g. `memory.h` conflicting with `ndk-sysroot`.
copied from Arch Linux `simulavr-git`
This commit is contained in:
Lucy Phipps 2023-09-11 07:32:21 +01:00 committed by GitHub
parent 9621ba770e
commit 4dc97b4b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,7 @@ _VERSION_MAJOR=1
_VERSION_MINOR=1
_VERSION_PATCH=0
TERMUX_PKG_VERSION=1:${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="git+https://git.savannah.nongnu.org/git/simulavr"
TERMUX_PKG_GIT_BRANCH=release-${TERMUX_PKG_VERSION#*:}
TERMUX_PKG_DEPENDS="libc++"
@ -26,3 +27,12 @@ termux_step_post_get_source() {
$TERMUX_PKG_BUILDER_DIR/hardcode-version.diff \
| patch --silent -p1
}
termux_step_post_make_install() {
mv "$TERMUX_PREFIX/share/doc/common" "$TERMUX_PREFIX/share/doc/simulavr"
# Headers are moved into their own subdirectory to prevent conflicts.
# Might cause issues when using them.
mv "$TERMUX_PREFIX/include" "$TERMUX_PREFIX/include-simulavr"
mkdir "$TERMUX_PREFIX/include"
mv "$TERMUX_PREFIX/include-simulavr" "$TERMUX_PREFIX/include/simulavr"
}