termux-packages/packages/proxmark3-git/build.sh

22 lines
1.1 KiB
Bash
Raw Normal View History

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@laro.se>"
2022-04-24 00:52:19 +02:00
_COMMIT=da81c6806b5e73c6e33f127109a6a82babc50c91
TERMUX_PKG_VERSION="2022.04.23-${_COMMIT:0:8}"
TERMUX_PKG_SHA256="f4d481024b618ae1d62d6ef9057580fffcf9bfd89838701cc0c104ab5cd291c8"
TERMUX_PKG_SRCURL="https://github.com/RfidResearchGroup/proxmark3/archive/${_COMMIT}.tar.gz"
TERMUX_PKG_DEPENDS="libbz2, libc++, readline"
TERMUX_PKG_BUILD_IN_SRC="true"
TERMUX_PKG_BLACKLISTED_ARCHES="i686, x86_64"
termux_step_post_configure() {
LDLIBS="-L${TERMUX_PREFIX}/lib" INCLUDES_CLIENT="-I${TERMUX_PREFIX}/include" CFLAGS="-I${TERMUX_PREFIX}/include"
TERMUX_PKG_EXTRA_MAKE_ARGS="client -j $TERMUX_MAKE_PROCESSES CC=$CC CXX=$CXX LD=$CXX cpu_arch=$TERMUX_ARCH SKIPREVENGTEST=1 SKIPQT=1 SKIPBT=1 SKIPPTHREAD=1 SKIPGPU=1 PLATFORM=PM3GENERIC"
}
termux_step_make_install() {
install -Dm700 "$TERMUX_PKG_BUILDDIR"/client/proxmark3 \
"$TERMUX_PREFIX"/bin/proxmark3
}