Newer
Older
minerva / Ports / gpgme / package.sh
@minerva minerva on 13 Jul 701 bytes Initial commit
#!/usr/bin/env -S bash ../.port_include.sh
port='gpgme'
version='1.23.2'
useconfigure='true'
use_fresh_config_sub='true'
config_sub_paths=(
    'build-aux/config.sub'
)
files=(
    "https://gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2#9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce5224"
)
depends=(
    'gnupg'
)
configopts=(
    '--disable-gpg-test'
    "--with-libgpg-error-prefix=${MINERVA_INSTALL_ROOT}/usr/local"
    "--with-libassuan-prefix=${MINERVA_INSTALL_ROOT}/usr/local"
    "--with-sysroot=${MINERVA_INSTALL_ROOT}"
)

post_install() {
    run sed -i 's#/usr/local#${CMAKE_SYSROOT}/usr/local#g' ${MINERVA_INSTALL_ROOT}/usr/local/lib/cmake/Gpgmepp/GpgmeppConfig.cmake
}