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"
|
2018-12-28 01:05:50 +01:00
|
|
|
TERMUX_PKG_VERSION=1.3.7
|
|
|
|
TERMUX_PKG_SHA256=a2441b7a04ae554ddd3eafcf50365c787b012e35ee6402eb6705d9cd4b8dfa65
|
2017-10-14 23:31:09 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/rhash/RHash/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2017-04-13 13:58:16 +02:00
|
|
|
TERMUX_PKG_DEPENDS="openssl"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
|
2018-06-22 01:22:14 +02:00
|
|
|
TERMUX_PKG_CONFLICTS=librhash
|
|
|
|
TERMUX_PKG_REPLACES=librhash
|
2017-04-13 13:58:16 +02:00
|
|
|
|
|
|
|
termux_step_make () {
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2018-05-18 03:22:17 +02:00
|
|
|
termux_step_make_install () {
|
|
|
|
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
|
|
|
|
}
|