termux-packages/packages/dog/build.sh

23 lines
982 B
Bash
Raw Normal View History

2021-10-11 11:22:33 +02:00
TERMUX_PKG_HOMEPAGE=https://dns.lookup.dog/
TERMUX_PKG_DESCRIPTION="A command-line DNS client."
TERMUX_PKG_LICENSE="EUPL-1.2"
TERMUX_PKG_LICENSE_FILE="LICENCE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.1.0
2022-02-19 10:50:58 +01:00
TERMUX_PKG_REVISION=2
2021-10-11 11:22:33 +02:00
TERMUX_PKG_SRCURL=https://github.com/ogham/dog/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=82387d38727bac7fcdb080970e84b36de80bfe7923ce83f993a77d9ac7847858
2022-02-19 10:50:58 +01:00
TERMUX_PKG_DEPENDS="openssl-1.1, resolv-conf"
2021-10-11 11:22:33 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
2022-02-19 10:50:58 +01:00
termux_step_pre_configure() {
export OPENSSL_INCLUDE_DIR=$TERMUX_PREFIX/include/openssl-1.1
export OPENSSL_LIB_DIR=$TERMUX_PREFIX/lib/openssl-1.1
CFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CFLAGS"
CPPFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CPPFLAGS"
CXXFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CXXFLAGS"
LDFLAGS="-L$TERMUX_PREFIX/lib/openssl-1.1 -Wl,-rpath=$TERMUX_PREFIX/lib/openssl-1.1 $LDFLAGS"
RUSTFLAGS+=" -C link-arg=-Wl,-rpath=$TERMUX_PREFIX/lib/openssl-1.1"
}