wok-current view fdutils/receipt @ rev 20954

gcc83: typos (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 03 17:15:30 2019 +0100 (2019-03-03)
parents 4ea0eb3f4881
children ad8b9ff412d2
line source
1 # SliTaz package receipt.
3 PACKAGE="fdutils"
4 VERSION="5.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities for configuring and formatting floppy."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.fdutils.linux.lu/"
11 WGET_URL="$WEB_SITE$TARBALL"
12 TAGS="floppy formatter"
14 DEPENDS=""
15 BUILD_DEPENDS="flex"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|.*inux/ext2_fs.*|struct ext2_super_block {\n\
21 __le32 pad1;\n __le32 s_blocks_count;\n __le32 pad2[4];\n\
22 __le32 s_log_block_size;\n __le32 pad3[7];\n\
23 __le16 s_magic;\n};|' src/fdmount.c
24 sed -i 's|(uname -m)|(echo i686)|' configure
25 mkdir -p $DESTDIR/etc
26 sed -i -e "s|^bindir.*|bindir = $DESTDIR/usr/bin|" \
27 -e "s|^sysconfdir.*|sysconfdir = $DESTDIR/etc|" \
28 src/Makefile*
29 ./configure $CONFIGURE_ARGS &&
30 make -j 1 DESTDIR=$DESTDIR install-prog
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 }