wok-next view grub/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="grub"
4 VERSION="0.97"
5 CATEGORY="base-system"
6 SHORT_DESC="GRUB boot loader"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gnu.org/software/grub/"
10 REPOLOGY="grub-legacy"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
14 CONFIG_FILES="/boot/grub"
16 #BUILD_DEPENDS="gcc3"
18 compile_rules()
19 {
20 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
21 util/grub-install.in
23 ./configure \
24 --prefix=/usr \
25 --infodir=/usr/share/info \
26 --without-curses \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$install install
31 }
33 genpkg_rules()
34 {
35 mkdir -p $fs/boot/grub
36 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/lib $fs/usr
42 # Permissions
43 chmod 755 $fs/usr/sbin/grub-*
44 chmod 655 $fs/usr/lib/grub/*/*
46 # Example configuration file (menu.lst).
47 cp $stuff/example-menu.lst $fs/boot/grub
48 cp $stuff/splash.xpm.gz $fs/boot/grub
49 }