wok-current view fdutils/receipt @ rev 24433
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 18:42:31 2022 +0000 (2022-02-12) |
parents | 409e6888e77a |
children |
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/download.html 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|.*inux/ext2_fs.*|struct ext2_super_block {\n\
28 __le32 pad1;\n __le32 s_blocks_count;\n __le32 pad2[4];\n\
29 __le32 s_log_block_size;\n __le32 pad3[7];\n\
30 __le16 s_magic;\n};|' src/fdmount.c
31 sed -i 's|(uname -m)|(echo i686)|' configure
32 mkdir -p $DESTDIR/etc
33 sed -i -e "s|^bindir.*|bindir = $DESTDIR/usr/bin|" \
34 -e "s|^sysconfdir.*|sysconfdir = $DESTDIR/etc|" \
35 src/Makefile*
36 ./configure $CONFIGURE_ARGS &&
37 make -j 1 DESTDIR=$DESTDIR install-prog
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 }