From c05dcb745ebecb43f675e847d4c4e63d17da55c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 4 Jul 2026 07:42:58 +0200 Subject: [PATCH] app-crypt/freepg: Split the script to make dist archives MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-crypt/freepg/files/make-dist-archive.sh | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app-crypt/freepg/files/make-dist-archive.sh diff --git a/app-crypt/freepg/files/make-dist-archive.sh b/app-crypt/freepg/files/make-dist-archive.sh new file mode 100644 index 0000000000000..3040d224b1253 --- /dev/null +++ b/app-crypt/freepg/files/make-dist-archive.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +if [ ${#} -ne 1 ]; then + echo "Usage: ${0} " + exit 1 +fi + +set -e -x + +PV=${1} +TAG=gnupg-${PV}-freepg + +git clone --depth 1 --branch "${TAG}" https://gitlab.com/freepg/gnupg +cd gnupg +rm -r -f .git +sed -i -e '/beta=yes/d' -e 's:-unknown:-freepg:' autogen.sh +# bashisms +bash autogen.sh +./configure --enable-maintainer-mode +# parallel can fail +make dist +gpg --detach-sign "${TAG}".tar.bz2 +kup putraw "${TAG}".tar.bz2 "${TAG}".tar.bz2.sig /pub/dev/mgorny@gentoo.org/freepg/ +cd .. +rm -r -f gnupg