# libgcrypt 1.12.2 — VARIANTE PIC para la campaña KDE (ADR 0011, Capa 0). Igual que la canónica
# (recipes/libgcrypt.toml) pero con --with-pic: kwallet (kwalletbackend) linka libgcrypt DENTRO de
# libKF6Wallet.so; sin PIC da "recompile with -fPIC". Depende de la variante PIC de libgpg-error
# (override incoming-kde, mismo name). Patrón static↔dinámico Capa 0.
name    = "libgcrypt"
version = "1.12.2"
license = "LGPL-2.1-or-later"

[source]
tarball = "https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.2.tar.bz2"
sha256  = "7ce33c2492221a0436f96a8500215e9f3e3dcb5fd26a757cd415e7a843babd5e"

[build]
compiler = "gcc"
target   = "x86_64-linux-musl"
link     = "static"
flags    = []

[build.phases]
configure = './configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-shared --enable-static --with-pic --with-libgpg-error-prefix=/usr --disable-doc'
compile   = 'make'
install   = 'make DESTDIR=/out install'

[deps]
build = ["libgpg-error"]
