termux-packages/packages/rhash/build.sh

27 lines
983 B
Bash
Raw Normal View History

2018-05-25 12:38:52 +02:00
TERMUX_PKG_HOMEPAGE=https://github.com/rhash/RHash
TERMUX_PKG_DESCRIPTION="Console utility for calculation and verification of magnet links and a wide range of hash sums"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.4.1
2017-10-14 23:31:09 +02:00
TERMUX_PKG_SRCURL=https://github.com/rhash/RHash/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=430c812733e69b78f07ce30a05db69563450e41e217ae618507a4ce2e144a297
TERMUX_PKG_DEPENDS="openssl"
TERMUX_PKG_CONFLICTS="librhash, rhash-dev"
TERMUX_PKG_REPLACES="librhash, rhash-dev"
2019-12-21 17:30:55 +01:00
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-static --enable-lib-static --enable-lib-shared"
termux_step_make() {
CFLAGS="-DOPENSSL_RUNTIME $CPPFLAGS $CFLAGS"
2018-05-13 07:17:09 +02:00
make -j $TERMUX_MAKE_PROCESSES \
ADDCFLAGS="$CFLAGS" \
ADDLDFLAGS="$LDFLAGS"
}
termux_step_make_install() {
2018-05-18 03:22:17 +02:00
make install install-pkg-config
2018-12-28 01:05:50 +01:00
make -C librhash install-lib-headers
2018-05-18 03:22:17 +02:00
ln -sf $TERMUX_PREFIX/lib/librhash.so.0 $TERMUX_PREFIX/lib/librhash.so
}