From 6567ada9dc1224f3c7a0ae4b6363a9232c51ba76 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 25 Sep 2014 16:34:07 -0300 Subject: memtest86+: add new package to [libre] --- libre/memtest86+/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 libre/memtest86+/PKGBUILD (limited to 'libre/memtest86+/PKGBUILD') diff --git a/libre/memtest86+/PKGBUILD b/libre/memtest86+/PKGBUILD new file mode 100644 index 000000000..d2f7140df --- /dev/null +++ b/libre/memtest86+/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 195965 2013-10-06 18:53:50Z eric $ +# Maintainer (Arch): Eric Bélanger +# Maintainer: André Silva +# Contributor: Márcio Silva + +pkgname=memtest86+ +pkgver=5.01 +pkgrel=1.parabola1 +pkgdesc="An advanced memory diagnostic tool" +arch=('any') +url="http://www.memtest.org" +license=('GPL2') +if [[ $CARCH == x86_64 ]]; then + makedepends+=('gcc-multilib' 'lib32-glibc') +fi +source=("http://www.memtest.org/download/${pkgver}/${pkgname}-${pkgver}.tar.gz" + 'multiboot.patch' + "${pkgname}-5.01-O0.patch" + "${pkgname}-5.01-array-size.patch") +sha1sums=('eb4b6d70114db3c9ed320785da44c0ba8349c10c' + '53d3c0106644e6e085b8576e48e9981e5ccc3145' + '83e20932625bb38137b01c0cbe1b8528629e0a76' + '04654951868e73b53a67ce3288f2bd1843b40870') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/multiboot.patch" + patch -Np1 -i "${srcdir}/${pkgname}-5.01-O0.patch" + patch -Np1 -i "${srcdir}/${pkgname}-5.01-array-size.patch" + sed -i 's|CC[=]gcc|CC=gcc -I/usr/include| + s|[-]fno[-]stack[-]protector|-fno-stack-protector -fno-aggressive-loop-optimizations| + \|scp memtest[.]bin|d + ' Makefile +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + install -D -m644 "${pkgname%86+}.bin" "${pkgdir}/boot/memtest86+/${pkgname%86+}.bin" +} -- cgit v1.2.3