wok view diffutils/receipt @ rev 24622
updated graphviz, graphviz-dev and graphviz-doc (2.42.2 -> 3.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 07 16:02:21 2022 +0100 (2022-03-07) |
parents | 71360a13cd94 |
children | d79ed38ace18 |
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 }