wok-current annotate fdutils/receipt @ rev 24517
updated epm (4.4 -> 5.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 22 10:46:11 2022 +0100 (2022-02-22) |
parents | 409e6888e77a |
children |
rev | line source |
---|---|
pascal@14526 | 1 # SliTaz package receipt. |
pascal@14526 | 2 |
pascal@14526 | 3 PACKAGE="fdutils" |
pascal@14526 | 4 VERSION="5.5" |
al@14742 | 5 CATEGORY="system-tools" |
pascal@14526 | 6 SHORT_DESC="Utilities for configuring and formatting floppy." |
pascal@14526 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@14526 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@14526 | 10 WEB_SITE="http://www.fdutils.linux.lu/" |
pascal@14526 | 11 WGET_URL="$WEB_SITE$TARBALL" |
pascal@14528 | 12 TAGS="floppy formatter" |
pascal@14526 | 13 |
pascal@14526 | 14 DEPENDS="" |
pascal@14526 | 15 BUILD_DEPENDS="flex" |
pascal@14526 | 16 |
pascal@24433 | 17 # What is the latest version available today? |
pascal@24433 | 18 current_version() |
pascal@24433 | 19 { |
pascal@24433 | 20 wget -O - ${WGET_URL%/*}/download.html 2>/dev/null | \ |
pascal@24433 | 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24433 | 22 } |
pascal@24433 | 23 |
pascal@14526 | 24 # Rules to configure and make the package. |
pascal@14526 | 25 compile_rules() |
pascal@14526 | 26 { |
pascal@20612 | 27 sed -i 's|.*inux/ext2_fs.*|struct ext2_super_block {\n\ |
pascal@20612 | 28 __le32 pad1;\n __le32 s_blocks_count;\n __le32 pad2[4];\n\ |
pascal@20612 | 29 __le32 s_log_block_size;\n __le32 pad3[7];\n\ |
pascal@20612 | 30 __le16 s_magic;\n};|' src/fdmount.c |
pascal@20612 | 31 sed -i 's|(uname -m)|(echo i686)|' configure |
pascal@14526 | 32 mkdir -p $DESTDIR/etc |
pascal@14526 | 33 sed -i -e "s|^bindir.*|bindir = $DESTDIR/usr/bin|" \ |
pascal@14526 | 34 -e "s|^sysconfdir.*|sysconfdir = $DESTDIR/etc|" \ |
pascal@14526 | 35 src/Makefile* |
pascal@14526 | 36 ./configure $CONFIGURE_ARGS && |
pascal@20613 | 37 make -j 1 DESTDIR=$DESTDIR install-prog |
pascal@14526 | 38 } |
pascal@14526 | 39 |
pascal@14526 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14526 | 41 genpkg_rules() |
pascal@14526 | 42 { |
pascal@14526 | 43 cp -a $install/* $fs |
pascal@14526 | 44 } |