mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 04:48:55 +00:00
- This is the `$TERMUX_PREFIX/include` portion of #21835 - Replace `-I` with `-isystem` in strategic locations: changes the include order of headers in `$TERMUX_PREFIX/include` relative to headers inside the source code of packages currently being built, so that if any headers inside the source code of the package being built have the exact same file names as headers inside `$TERMUX_PREFIX/include`, the headers from inside the source code of the package will be used, instead of the headers from inside `$TERMUX_PREFIX/include`, which would not be correct. - Previous discussion was here3dc455672c (diff-8c775c171f451b21463be103116ad5a4c2d0c54d3fb4ff4b59e987f98fc9c348)
- Prevents many _potential_ `$TERMUX_PREFIX/include`-related errors (that are often only reproducible when reusing a single docker container to compile multiple packages) in the following packages (and possibly other packages): - `nasm` - `bitlbee` - `emacs` - `gdb` - `libjxl` - `libmediainfo` - `maxcso` - `nodejs` - `pipewire` - `rust` - `sqlcipher` - `tome2` - `weggli` - `zip` - `proxmark3` - `handbrake` - This include order causes the `$TERMUX_ON_DEVICE_BUILD=false` build codepath to match the behavior of the `clang` binary from the `main/clang` package (i.e. the `$TERMUX_ON_DEVICE_BUILD=true` codepath), which is caused by the `-DDEFAULT_SYSROOT` setting that is built into it:26a76f7b5d/packages/libllvm/build.sh (L40)
- `simulavr`: the current `simulavr` `build.sh` runs `mv $TERMUX_PREFIX/include ...`, that is not really ideal because it effectively deletes the entire `$TERMUX_PREFIX/include` folder, preventing any other packages that might be built in the same container from using the headers they need from `$TERMUX_PREFIX/include` (and also potentially creating a malformed `simulavr` package `.deb` if any other packages were installed info `$TERMUX_PREFIX` beforehand). This rewrites the `simulavr` package in a way that avoids destroying `$TERMUX_PREFIX/include`.
29 lines
1.5 KiB
Bash
29 lines
1.5 KiB
Bash
TERMUX_PKG_HOMEPAGE="https://github.com/RfidResearchGroup/proxmark3"
|
|
TERMUX_PKG_DESCRIPTION="The Swiss Army Knife of RFID Research - RRG/Iceman repo"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="Marlin Sööse <marlin.soose@esque.ca>"
|
|
TERMUX_PKG_VERSION="1:4.19552"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/RfidResearchGroup/proxmark3/archive/refs/tags/v${TERMUX_PKG_VERSION:2}.tar.gz
|
|
TERMUX_PKG_SHA256=43f0f5ddbbca478c5be33a6392847a99e2fda47b0a2d21e89fed4a918808f405
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="libbz2, libc++, liblz4, readline"
|
|
TERMUX_PKG_BUILD_IN_SRC="true"
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="i686, x86_64"
|
|
|
|
termux_step_post_configure() {
|
|
export LDLIBS="$LDFLAGS"
|
|
export INCLUDES="$CPPFLAGS"
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="client CC=$CC CXX=$CXX LD=$CXX cpu_arch=$TERMUX_ARCH SKIPREVENGTEST=1 SKIPQT=1 SKIPPTHREAD=1 SKIPGD=1 PLATFORM=PM3GENERIC"
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 "$TERMUX_PKG_BUILDDIR"/client/proxmark3 "$TERMUX_PREFIX"/bin/proxmark3
|
|
mkdir -p "$TERMUX_PREFIX"/share/proxmark3/
|
|
cp -R "$TERMUX_PKG_BUILDDIR"/client/resources/ "$TERMUX_PREFIX"/share/proxmark3/resources/
|
|
cp -R "$TERMUX_PKG_BUILDDIR"/client/dictionaries/ "$TERMUX_PREFIX"/share/proxmark3/dictionaries/
|
|
cp -R "$TERMUX_PKG_BUILDDIR"/client/pyscripts/ "$TERMUX_PREFIX"/share/proxmark3/pyscripts/
|
|
cp -R "$TERMUX_PKG_BUILDDIR"/client/luascripts/ "$TERMUX_PREFIX"/share/proxmark3/luascripts/
|
|
cp -R "$TERMUX_PKG_BUILDDIR"/client/lualibs/ "$TERMUX_PREFIX"/share/proxmark3/lualibs/
|
|
}
|