wok view grub/receipt @ rev 24626
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 07 17:32:18 2022 +0000 (2022-03-07) |
parents | 87f1b8852b4c |
children | 85fdef900d06 |
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 for i in $stuff/*.diff ; do
27 [ -f $(basename $i) ] && continue
28 patch -p1 < $i
29 touch $(basename $i)
30 done
31 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
32 util/grub-install.in
33 grub_cv_prog_objcopy_absolute=yes \
34 ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \
35 --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/boot/grub $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $install/usr/lib $fs/usr
48 # Permissions
49 chmod 755 $fs/usr/sbin/grub-*
50 chmod 655 $fs/usr/lib/grub/*/*
52 # Strip.
53 # Example config file (menu.lst).
54 cp $stuff/example-menu.lst $fs/boot/grub
55 }