wok-next annotate gnu-efi/receipt @ rev 9336
lingot: update BUILD_DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 18 16:23:10 2011 +0100 (2011-03-18) |
parents | dc6010348018 |
children | ce538de5d43c |
rev | line source |
---|---|
pascal@4337 | 1 # SliTaz package receipt. |
pascal@4337 | 2 |
pascal@4337 | 3 PACKAGE="gnu-efi" |
pascal@4337 | 4 VERSION="3.0i" |
pascal@4337 | 5 CATEGORY="development" |
pascal@4337 | 6 SHORT_DESC="Development files for EFI applications." |
pascal@4337 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@4337 | 8 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz" |
pascal@4337 | 9 WEB_SITE="http://gnu-efi.sourceforge.net/" |
pascal@4337 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@4337 | 11 |
pascal@4337 | 12 # Rules to configure and make the package. |
pascal@4337 | 13 compile_rules() |
pascal@4337 | 14 { |
pascal@4337 | 15 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@4337 | 16 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then |
pascal@4337 | 17 tazwok cook linux |
pascal@4337 | 18 fi |
pascal@4337 | 19 cd $src |
pascal@4337 | 20 sed -i "s|^INSTALLROOT.*|INSTALLROOT=$PWD/_pkg/usr|" Make.defaults |
pascal@4337 | 21 sed -i "s|^LINUX_HEADERS.*|LINUX_HEADERS=$WOK/linux/linux-$KERNEL_VERSION|" apps/Makefile |
pascal@9049 | 22 make -j1 && make -j1 install |
pascal@4337 | 23 } |
pascal@4337 | 24 |
pascal@4337 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4337 | 26 genpkg_rules() |
pascal@4337 | 27 { |
pascal@4337 | 28 cp -a $_pkg/* $fs |
pascal@4337 | 29 } |
pascal@4337 | 30 |