wok-current view diffutils/receipt @ rev 25449
BootProg/boot32.asm: floppy chs support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 12 16:35:46 2022 +0000 (23 months ago) |
parents | 71360a13cd94 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="diffutils"
4 VERSION="3.8"
5 CATEGORY="development"
6 SHORT_DESC="Show differences between two files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/diffutils/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="diffutils-lang"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # 3.8 might be obsolete
27 sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install DESTDIR=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cook_copy_folders bin
41 # moved to package diffutils-lang
42 # Localisations:
43 # for lang in da de fr id it pt_BR ro ru; do
44 # mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
45 # cp -a $install/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo \
46 # $fs/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo
47 # done
48 }
50 # Overlap busybox
51 pre_install()
52 {
53 rm -f "$1/usr/bin/diff"
54 rm -f "$1/usr/bin/cmp"
55 }
57 post_remove()
58 {
59 ln -s /bin/busybox "$1/usr/bin/diff"
60 ln -s /bin/busybox "$1/usr/bin/cmp"
61 }