aboutsummaryrefslogtreecommitdiff
path: root/system/intel-microcode/intel-microcode.SlackBuild
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2015-10-12 23:38:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-12 23:38:48 +0700
commit5a96b0c138c436bb6a53a360dbe06d1839ca1c07 (patch)
tree0c80cf604069187981d88ef2c59962421f7ac78e /system/intel-microcode/intel-microcode.SlackBuild
parentc6e5c054a6bff5ca352cac142d955081c09d738e (diff)
system/intel-microcode: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/intel-microcode/intel-microcode.SlackBuild')
-rw-r--r--system/intel-microcode/intel-microcode.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/system/intel-microcode/intel-microcode.SlackBuild b/system/intel-microcode/intel-microcode.SlackBuild
index 5c3939a2139a..08afacf8c4af 100644
--- a/system/intel-microcode/intel-microcode.SlackBuild
+++ b/system/intel-microcode/intel-microcode.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=intel-microcode
SRCNAM=microcode
VERSION=${VERSION:-20150121}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -38,11 +38,22 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+
+mkdir $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tgz -C $SRCNAM-$VERSION
+cd $SRCNAM-$VERSION
+chown root:root microcode.dat
+chmod 0644 microcode.dat
mkdir -p $PKG/lib/firmware
-tar xvf $CWD/$SRCNAM-$VERSION.tgz -C $PKG/lib/firmware
-chown root:root $PKG/lib/firmware/microcode.dat
-chmod 0644 $PKG/lib/firmware/microcode.dat
+cp -a microcode.dat $PKG/lib/firmware
+
+if [ -x /usr/sbin/iucode_tool ]; then
+ mkdir -p $PKG/lib/firmware/intel-ucode
+ /usr/sbin/iucode_tool -v -L -K$PKG/lib/firmware/intel-ucode microcode.dat
+fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild