summaryrefslogtreecommitdiff
path: root/system/fwupd
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2020-01-27 06:47:43 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-01 09:00:30 +0700
commitd5c49366ba1409aacd92eba54fbad88fceb58640 (patch)
treee76146d3ac3a53d12a8d0295e4740303fa457685 /system/fwupd
parent63852442b57b6aa5e3e160e1b79c6fd7557ac713 (diff)
downloadslackbuilds-d5c49366ba1409aacd92eba54fbad88fceb58640.tar.gz
system/fwupd: Fix building without uefi support.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'system/fwupd')
-rw-r--r--system/fwupd/doinst.sh7
-rw-r--r--system/fwupd/fwupd.SlackBuild10
2 files changed, 15 insertions, 2 deletions
diff --git a/system/fwupd/doinst.sh b/system/fwupd/doinst.sh
index 544d2273ce..835a554895 100644
--- a/system/fwupd/doinst.sh
+++ b/system/fwupd/doinst.sh
@@ -22,4 +22,9 @@ config etc/fwupd/remotes.d/vendor-directory.conf.new
config etc/fwupd/remotes.d/fwupd-tests.conf.new
config etc/fwupd/daemon.conf.new
config etc/fwupd/redfish.conf.new
-config etc/fwupd/uefi.conf.new
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
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}