mirror-ublue-os-akmods/build-ublue-os-akmods-key.sh
Benjamin Sherman 5f7460cef1 refactor: split build steps into distinct scripts
Adjust build model such that akmods are built before ublue-main, and
then the resulting RPM artifacts are installed in ublue-main in the same
manner used by ublue-config.
2023-05-28 19:46:56 -05:00

12 lines
339 B
Bash
Executable file

#!/bin/sh
set -oeux pipefail
### BUILD UBLUE AKMODS-KEY RPM
install -D /etc/pki/akmods/certs/public_key.der /tmp/ublue-os-akmods-key/rpmbuild/SOURCES/public_key.der
rpmbuild -ba \
--define '_topdir /tmp/ublue-os-akmods-key/rpmbuild' \
--define '%_tmppath %{_topdir}/tmp' \
/tmp/ublue-os-akmods-key/ublue-os-akmods-key.spec