1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
5 pkgname=('memtest86+' 'memtest86+-efi' 'memtest86+-iso')
6 _tag=5dcd424ea7afb857c1171e747ef064d98d26afeb # tag/v6.10
9 pkgdesc='Advanced memory diagnostic tool'
10 url='https://www.memtest.org'
14 makedepends+=('xorriso' 'dosfstools' 'mtools') # to build the iso image
15 source=(#https://www.memtest.org/download/${pkgver}/${pkgname}-${pkgver}.bin.gz
16 "git+https://github.com/memtest86plus/memtest86plus.git#tag=${_tag}"
20 '9067f58ab7ad6d7080a7f5e428fb2ef68a44cb6d83e531badf385df134d1e764e0f77e9b2d1c3e8fca36cd5e25dcde672f71a4a8f883783ec600a70f0ee1c22c'
21 '926f5a7ef54e706c977bc03ca66a9e5ec3aa5ca119359c6e6bfdf83834ff5097689b312032cdf7661afab6baa04867e25792f27dd665fc89a061f2a9e39cf97e')
24 cd "memtest86plus"/build64
29 # Do not remove the space before the () or commitpkg will
30 # accidentally to run this function on the system (!!!)
31 # see devtools gitlab issue #87
32 package_memtest86+ () {
33 pkgdesc+=" legacy BIOS version"
35 cd "memtest86plus"/build64
36 install -Dm644 memtest.bin "$pkgdir"/boot/memtest86+/memtest.bin
37 install -Dm 755 "${srcdir}/60_memtest86+" "${pkgdir}/etc/grub.d/60_memtest86+"
39 package_memtest86+-efi() {
40 pkgdesc+=" EFI version"
42 cd "memtest86plus"/build64
43 install -Dm644 memtest.efi "$pkgdir"/boot/memtest86+/memtest.efi
44 install -Dm 755 "${srcdir}/60_memtest86+-efi" "${pkgdir}/etc/grub.d/60_memtest86+-efi"
46 package_memtest86+-iso() {
49 cd "memtest86plus"/build64
50 install -Dm644 memtest.iso "$pkgdir"/usr/share/memtest86+/memtest.iso