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

This commit is contained in:
Ivan Bushchik 2023-07-24 10:22:25 +03:00
parent 70c1413e1d
commit 124b6c39a2
2 changed files with 1128 additions and 7 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,6 @@
distributable:
url: https://github.com/adegtyarev/streebog/archive/{{version.raw}}.tar.gz
versions:
github: adegtyarev/streebog/tags
@ -10,11 +8,16 @@ build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script:
- cd streebog-{{version.marketing}}
- make
- mkdir -p {{prefix}}/bin
- mv gost3411-2012 {{prefix}}/bin/
linux:
gnu.org/patch: '*'
script: |
cd streebog-{{version.marketing}}
if test '{{hw.platform}}' = 'linux'; then
patch -p1 < ../props/32.patch
fi
make
mkdir -p {{prefix}}/bin
mv gost3411-2012 {{prefix}}/bin/
provides:
- bin/gost3411-2012