github.com/adegtyarev/streebog: init at 0.13 (#2649)

* github.com/adegtyarev/streebog: init at 0.13

* github.com/adegtyarev/streebog: fix build on linux

* simplify script

* fix patch path

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Ivan Bushchik 2023-07-24 18:05:15 +03:00 committed by GitHub
parent 3be6d5839d
commit cd87cbec48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1144 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,26 @@
distributable:
url: https://github.com/adegtyarev/streebog/archive/{{version.raw}}.tar.gz
strip-components: 1
versions:
github: adegtyarev/streebog/tags
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
linux:
gnu.org/patch: '*'
script:
- run: patch -p1 < props/32.patch
if: linux
- make
- run: cp "$SRCROOT"/gost3411-2012 .
working-directory: ${{prefix}}/bin
provides:
- bin/gost3411-2012
test:
script:
test "$(gost3411-2012 -q -s tea)" = "d13f0f2f8958457d295209625ecc6efca774f2e079948d1fe0330dfee8d6eb2ff3f961ba3ba8ec71e8227e8e590eb1b128dc53fc4724c037c1b7e481d45d9c31"