summaryrefslogtreecommitdiffstats
path: root/system/fwupd/fwupd.SlackBuild
diff options
context:
space:
mode:
author Andrew Clemons <andrew.clemons@gmail.com>2020-01-27 06:47:43 +1300
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-01 09:00:30 +0700
commitd5c49366ba1409aacd92eba54fbad88fceb58640 (patch)
treee76146d3ac3a53d12a8d0295e4740303fa457685 /system/fwupd/fwupd.SlackBuild
parent63852442b57b6aa5e3e160e1b79c6fd7557ac713 (diff)
downloadslackbuilds-d5c49366ba1409aacd92eba54fbad88fceb58640.tar.gz
slackbuilds-d5c49366ba1409aacd92eba54fbad88fceb58640.tar.xz
system/fwupd: Fix building without uefi support.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'system/fwupd/fwupd.SlackBuild')
-rw-r--r--system/fwupd/fwupd.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/system/fwupd/fwupd.SlackBuild b/system/fwupd/fwupd.SlackBuild
index 42be43104f..8493264dc1 100644
--- a/system/fwupd/fwupd.SlackBuild
+++ b/system/fwupd/fwupd.SlackBuild
@@ -111,7 +111,10 @@ mv $PKG/etc/fwupd/remotes.d/vendor-directory.conf $PKG/etc/fwupd/remotes.d/vendo
mv $PKG/etc/fwupd/remotes.d/fwupd-tests.conf $PKG/etc/fwupd/remotes.d/fwupd-tests.conf.new
mv $PKG/etc/fwupd/daemon.conf $PKG/etc/fwupd/daemon.conf.new
mv $PKG/etc/fwupd/redfish.conf $PKG/etc/fwupd/redfish.conf.new
-mv $PKG/etc/fwupd/uefi.conf $PKG/etc/fwupd/uefi.conf.new
+
+if [ -e $PKG/etc/fwupd/uefi.conf ] ; then
+ mv $PKG/etc/fwupd/uefi.conf $PKG/etc/fwupd/uefi.conf.new
+fi
rm -rf $PKG/usr/share/installed-tests
@@ -128,5 +131,10 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+if [ -e $PKG/etc/fwupd/uefi.conf.new ] ; then
+ echo "" >> $PKG/install/doinst.sh
+ echo "config etc/fwupd/uefi.conf.new" >> $PKG/install/doinst.sh
+fi
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}