app-crypt/freepg: Split the script to make dist archives

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-07-04 07:42:58 +02:00
parent afb66196f5
commit c05dcb745e

View File

@@ -0,0 +1,25 @@
#!/bin/sh
if [ ${#} -ne 1 ]; then
echo "Usage: ${0} <version>"
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