SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "intel-microcode"

# SliTaz package receipt.

PACKAGE="intel-microcode"
VERSION="20230214"
CATEGORY="kernel"
SHORT_DESC="Intel processor microcode update for Linux."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="other"
WEB_SITE="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files"
# See also: https://wiki.archlinux.org/index.php/Microcode
# and https://www.archlinux.org/packages/extra/any/intel-ucode/


TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-$VERSION.tar.gz"

DEPENDS="linux"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/microcode-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $install/lib/firmware/

    cp -r $src/intel-ucode/    $install/lib/firmware/

    install -Dm644 $stuff/LICENSE    $install/usr/share/licenses/$PACKAGE/LICENSE
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -r $install/*    $fs
}

# Pre and post install commands for Tazpkg.
post_install()
{
    if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]
      then
        echo 1 > /sys/devices/system/cpu/microcode/reload
    fi
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)