upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / memtest86+ / trunk / PKGBUILD
blob69071e73ff85a330609ac1a58b163671daaaeb9b
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgbase=memtest86+
5 pkgname=('memtest86+' 'memtest86+-efi' 'memtest86+-iso')
6 _tag='ce2c29eddc627350f96be5cdd176f61ab99e070a' # tag/v6.10
7 pkgver=6.10
8 pkgrel=1
9 pkgdesc='Advanced memory diagnostic tool'
10 url='https://www.memtest.org'
11 arch=('any')
12 license=('GPL2')
13 makedepends=('git')
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}"
17         60_memtest86+ 
18         60_memtest86+-efi)
19 sha512sums=('SKIP'
20             '9067f58ab7ad6d7080a7f5e428fb2ef68a44cb6d83e531badf385df134d1e764e0f77e9b2d1c3e8fca36cd5e25dcde672f71a4a8f883783ec600a70f0ee1c22c'
21             '926f5a7ef54e706c977bc03ca66a9e5ec3aa5ca119359c6e6bfdf83834ff5097689b312032cdf7661afab6baa04867e25792f27dd665fc89a061f2a9e39cf97e')
23 build() {
24   cd "memtest86plus"/build64
25   make
26   make iso
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() {
47   pkgdesc+=" ISO image"
49   cd "memtest86plus"/build64
50   install -Dm644 memtest.iso "$pkgdir"/usr/share/memtest86+/memtest.iso
53 # vim: ts=2 sw=2 et: