2021-04-14 05:33:14 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=gnupg
|
|
|
|
version=2.3.0
|
|
|
|
useconfigure=true
|
2022-01-08 16:32:29 +03:00
|
|
|
use_fresh_config_sub=true
|
2022-05-25 13:51:13 +03:00
|
|
|
config_sub_paths=("build-aux/config.sub")
|
2021-09-27 01:16:18 +03:00
|
|
|
configopts=("--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
|
|
"--with-libgcrypt-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
|
|
"--with-libassuan-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
|
|
"--with-ntbtls-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
|
|
"--with-npth-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
|
|
"--disable-dirmngr")
|
2021-04-16 20:39:43 +03:00
|
|
|
files="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2 gnupg-${version}.tar.bz2 84c1ef39e8621cfb70f31463a5d1d8edeab44332bc1e0e1af9b78b6f9ed05bb4"
|
2021-09-27 01:16:18 +03:00
|
|
|
depends=("libiconv" "libgpg-error" "libgcrypt" "libksba" "libassuan" "npth" "ntbtls")
|
2021-04-14 05:33:14 +03:00
|
|
|
|
|
|
|
pre_configure() {
|
2021-04-20 18:42:04 +03:00
|
|
|
export GPGRT_CONFIG="${SERENITY_INSTALL_ROOT}/usr/local/bin/gpgrt-config"
|
|
|
|
export CFLAGS="-L${SERENITY_INSTALL_ROOT}/usr/local/include"
|
2021-04-25 08:21:28 +03:00
|
|
|
export LDFLAGS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib -lm -liconv -ldl"
|
2021-04-14 05:33:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
configure() {
|
2021-09-27 01:16:18 +03:00
|
|
|
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" "${configopts[@]}"
|
2021-04-14 05:33:14 +03:00
|
|
|
}
|