wok-current annotate elilo/receipt @ rev 23629

twisted: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 16 13:05:37 2020 +0000 (2020-04-16)
parents 9f0372ee6bbd
children 640a2eba2511
rev   line source
pascal@4338 1 # SliTaz package receipt.
pascal@4338 2
pascal@4338 3 PACKAGE="elilo"
Hans-G?nter@22679 4 VERSION="3.16"
pascal@4338 5 CATEGORY="system-tools"
pascal@4338 6 SHORT_DESC="The EFI linux boot loader."
pascal@4338 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
Hans-G?nter@22679 9 WEB_SITE="https://sourceforge.net/projects/elilo/"
Hans-G?nter@22679 10
Hans-G?nter@22679 11 TARBALL="$PACKAGE-$VERSION-all.tar.gz"
pascal@4338 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@22679 13
pascal@4338 14 BUILD_DEPENDS="gnu-efi"
pascal@4338 15 # See http://mactel-linux.sourceforge.net/wiki/Main_Page
pascal@4338 16 # genisoimage -boot-hfs-file
pascal@4338 17
pascal@4338 18 # Rules to configure and make the package.
pascal@4338 19 compile_rules()
pascal@4338 20 {
Hans-G?nter@22679 21 mkdir -p $install/boot/efi/boot
Hans-G?nter@22679 22 mkdir -p $install/usr/sbin
Hans-G?nter@22679 23 mkdir -p $install/usr/share
Hans-G?nter@22679 24
Hans-G?nter@22679 25 tar -xz -f $PACKAGE-$VERSION-source.tar.gz &&
Hans-G?nter@22679 26 cd $PACKAGE-$VERSION-source &&
Hans-G?nter@22679 27 cp -a docs $install/usr/share/doc
Hans-G?nter@22679 28 cp README* $install/usr/share/doc
Hans-G?nter@22679 29 # rm -rf $install/usr/share/doc/CVS
pascal@23629 30 grep -rl 'StrnCpy(' * | xargs sed -i 's|StrnCpy(|StrnCpyElilo(|'
pascal@22682 31 sed -i 's|dpkg-architecture.*)|echo ia32)|' \
Hans-G?nter@22679 32 Make.defaults
pascal@22681 33 make ARCH=ia32 -j 1 &&
Hans-G?nter@22679 34 cp elilo.efi $install/boot/efi/boot/elilo &&
Hans-G?nter@22679 35 cp tools/eliloalt $install/usr/sbin
pascal@4338 36 }
pascal@4338 37
pascal@4338 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4338 39 genpkg_rules()
pascal@4338 40 {
Hans-G?nter@22679 41 mkdir -p $fs/usr/sbin
Hans-G?nter@22679 42
Hans-G?nter@22679 43 cp -a $install/boot $fs
Hans-G?nter@22679 44 cp -a $install/usr/sbin $fs/usr
pascal@4338 45 }