mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 12:14:37 +08:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
|
|
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/intel-ucode
|
|
|
|
pkgname=intel-ucode
|
|
pkgver=20140430
|
|
_code=23574
|
|
pkgrel=1
|
|
pkgdesc="Microcode update files for Intel CPUs"
|
|
arch=('any')
|
|
url="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22microcode%22"
|
|
replaces=('microcode_ctl')
|
|
license=('custom')
|
|
# Some random "download id" that intel has in their downloadcenter
|
|
_dlid=23829
|
|
source=("http://downloadmirror.intel.com/${_dlid}/eng/microcode-${pkgver}.tgz"
|
|
LICENSE
|
|
intel-microcode2ucode.c)
|
|
md5sums=('99c811133b002d1e73150f667a6a77f4'
|
|
'b0f489ae4b3e36dc8827dc53a76047aa'
|
|
'0efc5f6c74a4d7e61ca22683c93c98cf')
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
gcc -Wall ${CFLAGS} -o intel-microcode2ucode intel-microcode2ucode.c
|
|
./intel-microcode2ucode ./microcode.dat
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
install -d -m755 "${pkgdir}"/usr/lib/firmware/intel-ucode/
|
|
cp intel-ucode/* "${pkgdir}"/usr/lib/firmware/intel-ucode/
|
|
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|
|
|