wok-next rev 4337

Add gnu-efi
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 01 09:53:56 2009 +0200 (2009-10-01)
parents f25b70156910
children b6435c331026
files gnu-efi/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gnu-efi/receipt	Thu Oct 01 09:53:56 2009 +0200
     1.3 @@ -0,0 +1,30 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gnu-efi"
     1.7 +VERSION="3.0i"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Development files for EFI applications."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
    1.12 +WEB_SITE="http://gnu-efi.sourceforge.net/"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +# Rules to configure and make the package.
    1.16 +compile_rules()
    1.17 +{
    1.18 +	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.19 +	if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
    1.20 +        	tazwok cook linux
    1.21 +	fi
    1.22 +	cd $src
    1.23 +	sed -i "s|^INSTALLROOT.*|INSTALLROOT=$PWD/_pkg/usr|" Make.defaults
    1.24 +	sed -i "s|^LINUX_HEADERS.*|LINUX_HEADERS=$WOK/linux/linux-$KERNEL_VERSION|" apps/Makefile
    1.25 +	make && make install
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	cp -a $_pkg/* $fs
    1.32 +}
    1.33 +