forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.sh
executable file
·39 lines (37 loc) · 1.23 KB
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env -S bash ../.port_include.sh
port='gnupg'
version='2.4.5'
useconfigure='true'
use_fresh_config_sub='true'
config_sub_paths=(
'build-aux/config.sub'
)
files=(
"https://gnupg.org/ftp/gcrypt/gnupg/gnupg-${version}.tar.bz2#f68f7d75d06cb1635c336d34d844af97436c3f64ea14bcb7c869782f96f44277"
)
depends=(
'libassuan'
'libgcrypt'
'libgpg-error'
'libiconv'
'libksba'
'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")" \
--with-libgpg-error-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
--with-libgcrypt-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
--with-ksba-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
}