termux-packages/packages/proxmark3/build.sh

24 lines
1020 B
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-2.0"
TERMUX_PKG_MAINTAINER="Marlin Sööse <marlin.soose@laro.se>"
TERMUX_PKG_VERSION=1:4.14434
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/RfidResearchGroup/proxmark3/archive/v${TERMUX_PKG_VERSION:2}.tar.gz
TERMUX_PKG_SHA256=c92fb48f14d7428b9b06b9a2b966278ae9ada469b80f0eba1cc5bc001df86db6
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libbz2, libc++, readline"
TERMUX_PKG_BUILD_IN_SRC="true"
TERMUX_PKG_BLACKLISTED_ARCHES="i686, x86_64"
termux_step_post_configure() {
export LDLIBS="-L${TERMUX_PREFIX}/lib"
export INCLUDES="-I${TERMUX_PREFIX}/include"
TERMUX_PKG_EXTRA_MAKE_ARGS="client CC=$CC CXX=$CXX LD=$CXX cpu_arch=generic SKIPREVENGTEST=1 SKIPQT=1 SKIPBT=1 SKIPPTHREAD=1 PLATFORM=PM3GENERIC"
}
termux_step_make_install() {
install -Dm700 "$TERMUX_PKG_BUILDDIR"/client/proxmark3 \
"$TERMUX_PREFIX"/bin/proxmark3
}