termux-packages/packages/proxmark3/build.sh

23 lines
901 B
Bash
Raw Normal View History

2020-02-23 12:06:33 +01:00
TERMUX_PKG_HOMEPAGE="https://github.com/RfidResearchGroup/proxmark3"
TERMUX_PKG_DESCRIPTION="The Swiss Army Knife of RFID Research - RRG/Iceman repo"
2020-02-23 12:06:33 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
2020-03-01 15:55:37 +01:00
TERMUX_PKG_MAINTAINER="Marlin Sööse <marlin.soose@laro.se>"
_COMMIT=bf975af358e1694bd48f37458e709b05311bf92c
TERMUX_PKG_VERSION=2020.03.01-g${_COMMIT:0:8}
TERMUX_PKG_REVISION=1
2020-02-23 12:06:33 +01:00
TERMUX_PKG_SRCURL=https://github.com/RfidResearchGroup/proxmark3/archive/${_COMMIT}.tar.gz
2020-03-01 15:55:37 +01:00
TERMUX_PKG_SHA256=e27b4b77cf64ba83046719f969d0bcb0d2f8e36d4567cfd8e26005a8bdbf6689
2020-02-23 12:06:33 +01:00
TERMUX_PKG_BUILD_DEPENDS="readline"
TERMUX_PKG_BUILD_IN_SRC="true"
2020-02-23 12:59:52 +01:00
TERMUX_PKG_BLACKLISTED_ARCHES="i686, x86_64"
2020-02-23 12:06:33 +01:00
termux_step_make() {
LD=$CC
2020-03-01 15:55:37 +01:00
make PLATFORM=PM3OTHER client -j $TERMUX_MAKE_PROCESSES LDLIBS="-L$TERMUX_PREFIX/lib -lreadline -lm"
2020-02-23 12:06:33 +01:00
}
termux_step_make_install() {
install -Dm700 "$TERMUX_PKG_BUILDDIR"/client/proxmark3 \
"$TERMUX_PREFIX"/bin/proxmark3
}