Initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
[build]
|
||||
type = "autotools"
|
||||
|
||||
[build.flags]
|
||||
configure = [
|
||||
"--enable-hashes=strong,glibc",
|
||||
"--enable-obsolete-api=no",
|
||||
"--disable-static",
|
||||
"--disable-failure-tokens",
|
||||
"--disable-symvers"
|
||||
]
|
||||
build_32 = true
|
||||
|
||||
[dependencies]
|
||||
runtime = ["glibc"]
|
||||
|
||||
[dependencies.lib32]
|
||||
runtime = ["lib32-glibc"]
|
||||
|
||||
[package]
|
||||
description = "modern library for one-way hashing of passwords"
|
||||
homepage = "https://github.com/besser82/libxcrypt"
|
||||
license = "LGPL-2.1-or-Later"
|
||||
name = "libxcrypt"
|
||||
version = "4.5.2"
|
||||
|
||||
[[source]]
|
||||
extract_dir = "$name-$version"
|
||||
sha256 = "71513a31c01a428bccd5367a32fd95f115d6dac50fb5b60c779d5c7942aec071"
|
||||
url = "https://github.com/besser82/libxcrypt/releases/download/v$version/libxcrypt-$version.tar.xz"
|
||||
post_extract = [
|
||||
"printf '#ifdef __clang__\\n#pragma clang diagnostic ignored \"-Wgnu-statement-expression-from-macro-expansion\"\\n#endif\\n' > /tmp/_pragma.h",
|
||||
"cat /tmp/_pragma.h lib/alg-yescrypt-opt.c > /tmp/_tmp.c && mv /tmp/_tmp.c lib/alg-yescrypt-opt.c",
|
||||
"sed -i '/strchr/s/const//' lib/crypt-sm3-yescrypt.c lib/crypt-gost-yescrypt.c"
|
||||
]
|
||||
Reference in New Issue
Block a user