diff options
Diffstat (limited to 'system/intel-microcode/intel-microcode.SlackBuild')
-rw-r--r-- | system/intel-microcode/intel-microcode.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/system/intel-microcode/intel-microcode.SlackBuild b/system/intel-microcode/intel-microcode.SlackBuild index 5c3939a2139a7..08afacf8c4af2 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 |