Newer
Older
minerva / Ports / libgcrypt / package.sh
@minerva minerva on 13 Jul 689 bytes Initial commit
#!/usr/bin/env -S bash ../.port_include.sh
port='libgcrypt'
version='1.10.3'
useconfigure='true'
use_fresh_config_sub='true'
config_sub_paths=(
    'build-aux/config.sub'
)
depends=(
    'libgpg-error'
)
files=(
    "https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2#8b0870897ac5ac67ded568dcfadf45969cfa8a6beb0fd60af2a9eadc2a3272aa"
)

pre_configure() {
    export ac_cv_lib_pthread_pthread_create='no'
}

configure() {
    run ./configure \
        --host="${MINERVA_ARCH}-pc-minerva" \
        --build="$("${workdir}/build-aux/config.guess")" \
        --with-libgpg-error-prefix="${MINERVA_INSTALL_ROOT}/usr/local" \
        --with-sysroot="${MINERVA_INSTALL_ROOT}"
}