summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6c3ef0e7cefc4cb2375219fbe826ee1ad5e92fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pkgname=memtest86+-6-git
pkgver=v6.10.r12.g66bd82f
pkgrel=1
pkgdesc='Memtest86+ is a free, open-source, stand-alone memory tester for x86 and x86-64 architecture computers. It provides a much more thorough memory check than that provided by BIOS memory tests.'
arch=('x86_64')
url=https://github.com/memtest86plus/memtest86plus
license=('GPL2')
source=('git+https://github.com/memtest86plus/memtest86plus.git')
sha256sums=('SKIP')

pkgver() {
  cd "memtest86plus"
  git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "memtest86plus"/build64
    make
    make iso
}

package() {
    cd "memtest86plus"/build64
    install -Dm644 memtest.bin "$pkgdir"/boot/memtest86plus-6/memtest.bin
    install -Dm644 memtest.efi "$pkgdir"/boot/memtest86plus-6/memtest.efi
    install -Dm644 memtest.iso "$pkgdir"/usr/share/memtest86plus-6/memtest.iso
}