termux-packages/packages/wrk/build.sh
Leonid Pliushch 37375312b9
explicitly set maintainer for each package
In issue https://github.com/termux/termux-packages/issues/6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
2020-12-20 15:16:34 +02:00

33 lines
966 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/wg/wrk
TERMUX_PKG_DESCRIPTION="Modern HTTP benchmarking tool"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.1.0
TERMUX_PKG_REVISION=2
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
install -Dm600 -t "$TERMUX_PREFIX"/share/doc/wrk/examples/ scripts/*.lua
install -Dm600 -t "$TERMUX_PREFIX"/share/lua/5.1/ src/wrk.lua
}