diff options
author | prspkt <prspkt@protonmail.com> | 2018-05-28 04:34:26 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-06-12 09:31:36 +0000 |
commit | 726bcb290d3895869a86b805b6179d681dc530ab (patch) | |
tree | a551cb8613b59c62d76c904a55b007fe2927d964 /non-free | |
parent | d82d4e0dede8d2afbf66ccdbd48b5c02beeca132 (diff) | |
download | aports-726bcb290d3895869a86b805b6179d681dc530ab.tar.bz2 aports-726bcb290d3895869a86b805b6179d681dc530ab.tar.xz |
non-free/intel-ucode: improve abuild
Use https for upstream URL
Diffstat (limited to 'non-free')
-rw-r--r-- | non-free/intel-ucode/APKBUILD | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/non-free/intel-ucode/APKBUILD b/non-free/intel-ucode/APKBUILD index 2b1c660451..86dbe1607b 100644 --- a/non-free/intel-ucode/APKBUILD +++ b/non-free/intel-ucode/APKBUILD @@ -4,31 +4,32 @@ pkgver=20180108 pkgrel=0 pkgdesc="Microcode update files for Intel CPUs" arch=noarch -url="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22microcode%22" -license='custom' +url="https://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22microcode%22" +license="custom" source="https://downloadmirror.intel.com/27431/eng/microcode-$pkgver.tgz - LICENSE - intel-microcode2ucode.c" + LICENSE + intel-microcode2ucode.c" options="!check" build() { - cd "$srcdir" - gcc -Wall ${CFLAGS} -o intel-microcode2ucode intel-microcode2ucode.c - ./intel-microcode2ucode ./microcode.dat + cd "$srcdir" + gcc -Wall ${CFLAGS} -o intel-microcode2ucode intel-microcode2ucode.c + ./intel-microcode2ucode ./microcode.dat } package() { - cd "$srcdir" + cd "$srcdir" - install -d -m755 "${pkgdir}"/boot + install -d -m755 "$pkgdir"/boot + mkdir -p kernel/x86/microcode + mv microcode.bin kernel/x86/microcode/GenuineIntel.bin - mkdir -p kernel/x86/microcode - mv microcode.bin kernel/x86/microcode/GenuineIntel.bin - echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > "${pkgdir}"/boot/intel-ucode.img + echo kernel/x86/microcode/GenuineIntel.bin | \ + cpio -o -H newc -R 0:0 > "$pkgdir"/boot/intel-ucode.img - install -D -m644 LICENSE \ - "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } + sha512sums="f4010d83353948df27beeb804ef11e4f019f63397a4936f9d139e2842f7944d1ae864b9376987eaffc7db5b97201d5de2f4c1d7cc6b0f545ae15ec53a61fce2b microcode-20180108.tgz d80ce9087e2ffd0168600a34de195d6514d3a496bc233294cd838498e1ce668b9ad4463bbbe7958feec0421b5aed3ade1633432ce086241e03ed06bbd53b83a5 LICENSE ee60f968acab4067f5660449eabae533b5d3996cd59fd4b69d0e23e0b264da216ab6e6ccd554222cf355fc14dbd348562a2d36a87a60f1f54433603e04998cd1 intel-microcode2ucode.c" |