# nPth 1.8 — New Portable Threads de GnuPG (una de las 3 libs para gnupg).
# De-Alpinizada (Etapa G): autotools limpio de gnupg.org, sin deps de catálogo (autoconf/
# automake/libtool NO hacen falta: el tarball release ya trae ./configure generado).
name    = "npth"
version = "1.8"

[source]
tarball = "https://gnupg.org/ftp/gcrypt/npth/npth-1.8.tar.bz2"
# sha512 de Alpine (referencia):
# 34fdeea3d8a7a594d8fdbcc6d5d389b5c8e282e8e84c1491b1e51960c0fa007df6a1d62543f0107f0772f3215557d4b25c2a9c7067cb0ae2f8de7b4d63d09fb4
sha256  = "8bd24b4f23a3065d6e5b26e98aba9ce783ea4fd781069c1b35d149694e90ca3e"

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

[build.phases]
configure = '''
./configure \
	--build=$CBUILD \
	--host=$CHOST \
	--prefix=/usr \
	--enable-static \
	--disable-shared \
	--disable-nls
'''
compile = 'make -j"$(nproc)"'
install = 'make DESTDIR=/out install'
