pantry/projects/github.com/adegtyarev/streebog/package.yml
Ivan Bushchik cd87cbec48
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>
2023-07-24 11:05:15 -04:00

26 lines
647 B
YAML

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"