wok view grub/receipt @ rev 25307
updated siproxd (0.8.2 -> 0.8.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 10:52:20 2022 +0100 (2022-07-20) |
parents | ad9008f821da |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="grub"
4 VERSION="0.97"
5 CATEGORY="base-system"
6 SHORT_DESC="GRUB boot loader."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/grub/"
11 WGET_URL="http://alpha.gnu.org/gnu/grub/$TARBALL"
12 CONFIG_FILES="/boot/grub"
14 BUILD_DEPENDS="gcc3"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/$PACKAGE-0/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # binutils 2.37 support
27 sed 's|-O binary|--only-section=.text &|' -i configure* acinclude.m4 stage*/Makefile*
28 sed 's|2000 8000 7C00|0x2000 0x8000 0x7C00|' -i configure* acinclude.m4
30 for i in $stuff/*.diff ; do
31 [ -f $(basename $i) ] && continue
32 patch -p1 < $i
33 touch $(basename $i)
34 done
35 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
36 util/grub-install.in
37 grub_cv_prog_objcopy_absolute=yes \
38 ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \
39 --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/boot/grub $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/sbin $fs/usr
50 cp -a $install/usr/lib $fs/usr
52 # Permissions
53 chmod 755 $fs/usr/sbin/grub-*
54 chmod 655 $fs/usr/lib/grub/*/*
56 # Strip.
57 # Example config file (menu.lst).
58 cp $stuff/example-menu.lst $fs/boot/grub
59 }