wok-6.x rev 1734

memtest: build from source
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 21 10:23:14 2008 +0000 (2008-11-21)
parents 4c90e423814c
children 666c8239ceb2
files memtest/receipt
line diff
     1.1 --- a/memtest/receipt	Fri Nov 21 07:02:21 2008 +0000
     1.2 +++ b/memtest/receipt	Fri Nov 21 10:23:14 2008 +0000
     1.3 @@ -5,22 +5,24 @@
     1.4  CATEGORY="base-system"
     1.5  SHORT_DESC="Memory failures detection tool."
     1.6  MAINTAINER="pascal.bellard@slitaz.org"
     1.7 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.8 +SOURCE="memtest86+"
     1.9 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.10  WEB_SITE="http://www.memtest.org/"
    1.11 -RAW_WGET_URL="http://www.memtest.org/download/$VERSION/memtest86+-$VERSION.bin.gz"
    1.12 +WGET_URL="${WEB_SITE}download/$VERSION/$TARBALL"
    1.13  
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {
    1.17 -    [ -f $(basename $RAW_WGET_URL) ] || wget $RAW_WGET_URL
    1.18 +	cd $src
    1.19 +	make
    1.20  } 
    1.21  
    1.22  
    1.23  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.24  genpkg_rules()
    1.25  {
    1.26 -    mkdir -p  $fs/usr/share/boot
    1.27 -    zcat $(basename $RAW_WGET_URL) | lzma e $fs/usr/share/boot/memtest.lzma -si
    1.28 +	mkdir -p  $fs/usr/share/boot
    1.29 +	lzma e $src/memtest.bin $fs/usr/share/boot/memtest.lzma
    1.30  }
    1.31  
    1.32  # Pre and post install commands for Tazpkg.