2018-05-25 12:38:52 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/rhash/RHash
|
2017-04-13 13:58:16 +02:00
|
|
|
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"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-07-25 17:52:51 +02:00
|
|
|
TERMUX_PKG_VERSION=1.4.2
|
2017-10-14 23:31:09 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/rhash/RHash/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2021-07-25 17:52:51 +02:00
|
|
|
TERMUX_PKG_SHA256=600d00f5f91ef04194d50903d3c79412099328c42f28ff43a0bdb777b00bec62
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2017-04-13 13:58:16 +02:00
|
|
|
TERMUX_PKG_DEPENDS="openssl"
|
2019-07-20 10:42:33 +02:00
|
|
|
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
|
2021-07-25 17:52:51 +02:00
|
|
|
|
|
|
|
termux_step_configure() {
|
|
|
|
./configure \
|
|
|
|
--prefix=$TERMUX_PREFIX \
|
|
|
|
--disable-static \
|
|
|
|
--enable-lib-static \
|
|
|
|
--enable-lib-shared \
|
|
|
|
--cc=$CC
|
|
|
|
}
|
2017-04-13 13:58:16 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make() {
|
2017-04-13 13:58:16 +02:00
|
|
|
CFLAGS="-DOPENSSL_RUNTIME $CPPFLAGS $CFLAGS"
|
2018-05-13 07:17:09 +02:00
|
|
|
make -j $TERMUX_MAKE_PROCESSES \
|
2017-04-13 13:58:16 +02:00
|
|
|
ADDCFLAGS="$CFLAGS" \
|
|
|
|
ADDLDFLAGS="$LDFLAGS"
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
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
|
|
|
|
2017-04-13 13:58:16 +02:00
|
|
|
ln -sf $TERMUX_PREFIX/lib/librhash.so.0 $TERMUX_PREFIX/lib/librhash.so
|
|
|
|
}
|