2022-11-20 09:53:22 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/rhash/RHash/archive/refs/tags/v{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: rhash/RHash/releases/tags
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/whirlpool-hash
|
|
|
|
- bin/tiger-hash
|
|
|
|
- bin/tth-hash
|
|
|
|
- bin/rhash
|
|
|
|
- bin/sfv-hash
|
|
|
|
- bin/magnet-link
|
|
|
|
- bin/has160-hash
|
|
|
|
- bin/gost12-256-hash
|
|
|
|
- bin/gost12-512-hash
|
|
|
|
- bin/edonr512-hash
|
|
|
|
- bin/edonr256-hash
|
|
|
|
- bin/ed2k-link
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
2023-07-16 08:41:55 +03:00
|
|
|
script:
|
|
|
|
- ./configure --prefix={{ prefix }}
|
2023-07-16 09:38:07 +03:00
|
|
|
|
|
|
|
# Somehow, this doesn't get made in proper sequence in
|
|
|
|
# 1.4.4
|
|
|
|
- run: make rhash
|
2023-07-16 08:41:55 +03:00
|
|
|
if: =1.4.4
|
|
|
|
|
|
|
|
- make --jobs {{ hw.concurrency }}
|
|
|
|
- make --jobs {{ hw.concurrency }} install
|
|
|
|
- make -C librhash install-lib-headers
|
|
|
|
- make test
|
2022-11-20 09:53:22 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
rhash --version
|
2022-11-20 11:21:24 +03:00
|
|
|
echo -n test > test
|
|
|
|
echo -n a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 test > test.sha1
|
|
|
|
rhash -c test.sha1
|