2022-10-07 17:32:11 +03:00
|
|
|
distributable:
|
|
|
|
url: https://gnupg.org/ftp/gcrypt/gnupg/gnupg-{{version}}.tar.bz2
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://gnupg.org/ftp/gcrypt/gnupg/
|
|
|
|
match: /gnupg-(\d+\.\d+(\.\d+)?)\.tar\.bz2/
|
|
|
|
strip:
|
|
|
|
- /gnupg-/
|
|
|
|
- /.tar.bz2/
|
2022-10-07 17:32:11 +03:00
|
|
|
|
2023-11-25 16:05:20 +03:00
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
# allows us to be relocatable provided `gpgconf.ctl` exists alongside
|
|
|
|
# the `gpgconf` binary. NOTE causes warning messages on Darwin:
|
|
|
|
# error reading symlink '/proc/curproc/file': No such file or directory
|
|
|
|
# which seemingly cannot be avoided without a patch
|
|
|
|
GNUPG_BUILD_ROOT: '{{prefix}}'
|
|
|
|
|
2023-11-12 02:34:33 +03:00
|
|
|
dependencies:
|
2023-11-25 16:05:20 +03:00
|
|
|
zlib.net: ^1.1
|
2023-11-12 02:34:33 +03:00
|
|
|
sourceware.org/bzip2: '*'
|
|
|
|
gnupg.org/npth: '*'
|
|
|
|
gnupg.org/libgpg-error: '*'
|
|
|
|
gnupg.org/libksba: '*'
|
|
|
|
gnupg.org/libassuan: '*'
|
|
|
|
gnupg.org/libgcrypt: '*'
|
|
|
|
gnupg.org/pinentry: '*'
|
2023-11-21 16:07:51 +03:00
|
|
|
gnutls.org: ^3
|
|
|
|
openldap.org: ^2
|
|
|
|
gnu.org/readline: ^8
|
|
|
|
sqlite.org: ^3
|
2023-11-25 16:05:20 +03:00
|
|
|
darwin: # nobody added a comment to say why this is Darwin only
|
|
|
|
gnu.org/gettext: ^0.21
|
2023-11-12 02:34:33 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
linux:
|
|
|
|
gnu.org/gcc: '*'
|
|
|
|
script:
|
|
|
|
- ./configure $ARGS
|
|
|
|
- make --jobs {{ hw.concurrency }}
|
|
|
|
- make --jobs {{ hw.concurrency }} install
|
2023-11-25 16:05:20 +03:00
|
|
|
|
|
|
|
# this makes the lookup machinery relocatable, see above
|
|
|
|
- cp props/gpgconf.ctl {{prefix}}/bin
|
|
|
|
|
2023-11-12 02:34:33 +03:00
|
|
|
- run: |
|
|
|
|
sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" gpg-wks-client
|
|
|
|
rm gpg-wks-client.bak
|
2023-11-12 05:38:52 +03:00
|
|
|
working-directory: '{{prefix}}/libexec'
|
|
|
|
- run: |
|
|
|
|
mkdir -p var/run etc/gnupg
|
|
|
|
chmod 700 etc/gnupg
|
|
|
|
working-directory: '{{prefix}}'
|
2023-11-25 16:05:20 +03:00
|
|
|
|
|
|
|
# nobody added a comment explaining why this conf is required
|
|
|
|
- run: cp props/gpg.conf {{prefix}}/etc/gnupg/gpg.conf
|
2023-11-12 02:34:33 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix={{prefix}}
|
|
|
|
- --libdir={{prefix}}/lib
|
|
|
|
- --sysconfdir={{prefix}}/etc
|
|
|
|
- --disable-debug
|
|
|
|
- --disable-dependency-tracking
|
|
|
|
- --disable-silent-rules
|
|
|
|
- --with-pinentry-pgm={{deps.gnupg.org/pinentry.prefix}}/bin/pinentry
|
|
|
|
|
2022-10-07 17:32:11 +03:00
|
|
|
provides:
|
|
|
|
- bin/gpg
|
|
|
|
- bin/gpg-agent
|
|
|
|
- bin/gpg-card
|
|
|
|
- bin/gpg-connect-agent
|
|
|
|
- bin/gpg-wks-client
|
|
|
|
- bin/gpg-wks-server
|
|
|
|
- bin/gpgconf
|
|
|
|
- bin/gpgparsemail
|
|
|
|
- bin/gpgscm
|
|
|
|
- bin/gpgsm
|
|
|
|
- bin/gpgsplit
|
|
|
|
- bin/gpgtar
|
|
|
|
- bin/gpgv
|
|
|
|
- bin/kbxutil
|
|
|
|
- bin/watchgnupg
|
|
|
|
|
|
|
|
test:
|
2023-11-12 02:34:33 +03:00
|
|
|
script:
|
|
|
|
- killall gpg-agent || true
|
|
|
|
- gpg --version | grep {{version}}
|
|
|
|
- gpg --quick-gen-key --batch --passphrase "" "Testing" default default never
|
|
|
|
- gpg --detach-sign test.txt
|
|
|
|
- gpg --verify test.txt.sig
|