2020-05-08 01:23:01 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/wg/wrk
|
|
|
|
TERMUX_PKG_DESCRIPTION="Modern HTTP benchmarking tool"
|
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-05-08 01:23:01 +02:00
|
|
|
TERMUX_PKG_VERSION=4.1.0
|
2022-02-21 14:22:21 +01:00
|
|
|
TERMUX_PKG_REVISION=3
|
2020-05-08 01:23:01 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/wg/wrk/archive/${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e
|
|
|
|
TERMUX_PKG_DEPENDS="openssl, luajit"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
local _ARCH
|
|
|
|
|
|
|
|
if [ "$TERMUX_ARCH" = "i686" ]; then
|
|
|
|
_ARCH="x86"
|
|
|
|
elif [ "$TERMUX_ARCH" = "x86_64" ]; then
|
|
|
|
_ARCH="x64"
|
|
|
|
elif [ "$TERMUX_ARCH" = "aarch64" ]; then
|
|
|
|
_ARCH="arm64"
|
|
|
|
else
|
|
|
|
_ARCH=$TERMUX_ARCH
|
|
|
|
fi
|
|
|
|
|
|
|
|
make WITH_OPENSSL=$TERMUX_PREFIX WITH_LUAJIT=$TERMUX_PREFIX _ARCH=$_ARCH
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin wrk
|
2020-05-08 02:29:57 +02:00
|
|
|
install -Dm600 -t "$TERMUX_PREFIX"/share/doc/wrk/examples/ scripts/*.lua
|
|
|
|
install -Dm600 -t "$TERMUX_PREFIX"/share/lua/5.1/ src/wrk.lua
|
2020-05-08 01:23:01 +02:00
|
|
|
}
|