2020-01-08 14:00:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
# Package compression settings (Matches latest Arch)
|
|
|
|
export PKGEXT='.pkg.tar.zst'
|
|
|
|
export COMPRESSZST=(zstd -c -T0 --ultra -20 -)
|
|
|
|
|
2020-01-09 00:42:47 +00:00
|
|
|
# Import GPG key
|
|
|
|
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
|
|
|
|
export GPG_TTY=$(tty)
|
2020-01-08 14:00:25 +00:00
|
|
|
|
2020-01-09 00:42:47 +00:00
|
|
|
# Build the packages as `build' user
|
|
|
|
pushd surface
|
|
|
|
makepkg -f --syncdeps --skippgpcheck --noconfirm
|
|
|
|
# Sign as a separate step (makepkg -s needs pinentry)
|
|
|
|
makepkg --packagelist | xargs -L1 gpg --detach-sign --batch --no-tty --pinentry-mode=loopback --passphrase $GPG_PASSPHRASE -u 5B574D1B513F9A05
|
2020-01-08 14:00:25 +00:00
|
|
|
popd
|
|
|
|
|
2020-01-09 00:42:47 +00:00
|
|
|
pushd kernel
|
|
|
|
makepkg -f --syncdeps --skippgpcheck --noconfirm
|
|
|
|
# Sign as a separate step (makepkg -s needs pinentry)
|
|
|
|
makepkg --packagelist | xargs -L1 gpg --detach-sign --batch --no-tty --pinentry-mode=loopback --passphrase $GPG_PASSPHRASE -u 5B574D1B513F9A05
|
2020-01-08 14:00:25 +00:00
|
|
|
popd
|