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:
parent
ba5710871b
commit
0a600a3c36
3 changed files with 35 additions and 0 deletions
22
Ports/gnupg/package.sh
Executable file
22
Ports/gnupg/package.sh
Executable 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue