ladybird/Ports/gpgme/package.sh
Fabian Dellwing 65fd70c890 Ports/gpgme: Prefix CMakeConfig file with ${CMAKE_SYSROOT}
The automatically created CMakeConfig file was not working for
cross-compilation. We now prefix the path with `${CMAKE_SYSROOT}`
to have it work on host and target.
2024-04-07 16:35:22 +02:00

25 lines
705 B
Bash
Executable File

#!/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=${SERENITY_INSTALL_ROOT}/usr/local"
"--with-libassuan-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
"--with-sysroot=${SERENITY_INSTALL_ROOT}"
)
post_install() {
run sed -i 's#/usr/local#${CMAKE_SYSROOT}/usr/local#g' ${SERENITY_INSTALL_ROOT}/usr/local/lib/cmake/Gpgmepp/GpgmeppConfig.cmake
}