mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-24 19:54:53 +03:00
cdd6d68b2a
All of these patches did the same thing, which is already in upstream config.sub. With this change, we need only add `use_fresh_config_sub=true` to the package.sh file. Note that this is not done automatically in case the port has a modified config.sub file.
26 lines
1.1 KiB
Bash
Executable File
26 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=gnupg
|
|
version=2.3.0
|
|
useconfigure=true
|
|
use_fresh_config_sub=true
|
|
config_sub_path=build-aux/config.sub
|
|
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")
|
|
files="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2 gnupg-${version}.tar.bz2 84c1ef39e8621cfb70f31463a5d1d8edeab44332bc1e0e1af9b78b6f9ed05bb4"
|
|
auth_type=sha256
|
|
depends=("libiconv" "libgpg-error" "libgcrypt" "libksba" "libassuan" "npth" "ntbtls")
|
|
|
|
pre_configure() {
|
|
export GPGRT_CONFIG="${SERENITY_INSTALL_ROOT}/usr/local/bin/gpgrt-config"
|
|
export CFLAGS="-L${SERENITY_INSTALL_ROOT}/usr/local/include"
|
|
export LDFLAGS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib -lm -liconv -ldl"
|
|
}
|
|
|
|
configure() {
|
|
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" "${configopts[@]}"
|
|
}
|