wok-current rev 10440
gnu-efi: fix build and clean receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 25 01:51:24 2011 +0200 (2011-05-25) |
parents | 22efe5211936 |
children | a9ae9905e1b7 |
files | gnu-efi/receipt |
line diff
1.1 --- a/gnu-efi/receipt Wed May 25 01:32:05 2011 +0200 1.2 +++ b/gnu-efi/receipt Wed May 25 01:51:24 2011 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="gnu-efi" 1.7 -VERSION="3.0i" 1.8 +VERSION="3.0k" 1.9 CATEGORY="development" 1.10 SHORT_DESC="Development files for EFI applications." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -9,22 +9,19 @@ 1.13 WEB_SITE="http://gnu-efi.sourceforge.net/" 1.14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 1.16 +BUILD_DEPENDS="linux-api-headers" 1.17 + 1.18 # Rules to configure and make the package. 1.19 compile_rules() 1.20 { 1.21 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.22 - if [ ! -d $WOK/linux/install ]; then 1.23 - cook linux || tazwok cook linux 1.24 - fi 1.25 + KERNEL_VERSION=$(grep ^VERSION= $WOK/linux/receipt | cut -d '"' -f 2) 1.26 cd $src 1.27 - sed -i "s|^INSTALLROOT.*|INSTALLROOT=$PWD/_pkg/usr|" Make.defaults 1.28 - sed -i "s|^LINUX_HEADERS.*|LINUX_HEADERS=$WOK/linux/linux-$KERNEL_VERSION|" apps/Makefile 1.29 + sed -i "s|^INSTALLROOT.*|INSTALLROOT=$DESTDIR|" Make.defaults 1.30 make -j1 && make -j1 install 1.31 } 1.32 1.33 # Rules to gen a SliTaz package suitable for Tazpkg. 1.34 genpkg_rules() 1.35 { 1.36 - cp -a $_pkg/* $fs 1.37 + cp -a $install/* $fs 1.38 } 1.39 -