1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:47:34 +00:00

Ports: Add gnupg port

This commit is contained in:
Gunnar Beutner 2021-04-14 04:33:14 +02:00 committed by Andreas Kling
parent ba5710871b
commit 0a600a3c36
3 changed files with 35 additions and 0 deletions

22
Ports/gnupg/package.sh Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=gnupg
version=2.3.0
useconfigure=true
configopts="--with-libgpg-error-prefix=${SERENITY_BUILD_DIR}/Root/usr/local \
--with-libgcrypt-prefix=${SERENITY_BUILD_DIR}/Root/usr/local \
--with-libassuan-prefix=${SERENITY_BUILD_DIR}/Root/usr/local \
--with-ntbtls-prefix=${SERENITY_BUILD_DIR}/Root/usr/local \
--with-npth-prefix=${SERENITY_BUILD_DIR}/Root/usr/local \
--disable-dirmngr"
files="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2 gnupg-${version}.tar.bz2"
depends="libiconv libgpg-error libgcrypt libassuan npth ntbtls"
pre_configure() {
export GPGRT_CONFIG="${SERENITY_BUILD_DIR}/Root/usr/local/bin/gpgrt-config"
export CFLAGS="-L${SERENITY_BUILD_DIR}/Root/usr/local/include"
export LDFLAGS="-L${SERENITY_BUILD_DIR}/Root/usr/local/lib -lm -liconv"
}
configure() {
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" $configopts
}