wok view grub/receipt @ rev 20152
Up miniupnp (2.0.20171212), fix get-rar url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 18 11:31:21 2017 +0100 (2017-12-18) |
parents | c2b2f2268068 |
children | 0c1ad897a405 |
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="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
12 CONFIG_FILES="/boot/grub"
14 BUILD_DEPENDS="gcc3"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 for i in $stuff/*.diff ; do
21 [ -f $(basename $i) ] && continue
22 patch -p1 < $i
23 touch $(basename $i)
24 done
25 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
26 util/grub-install.in
27 ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \
28 --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/boot/grub $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/sbin $fs/usr
39 cp -a $install/usr/lib $fs/usr
41 # Permissions
42 chmod 755 $fs/usr/sbin/grub-*
43 chmod 655 $fs/usr/lib/grub/*/*
45 # Strip.
46 # Example config file (menu.lst).
47 cp $stuff/example-menu.lst $fs/boot/grub
48 }