wok view diffutils/receipt @ rev 24461
updated daloradius (0.9-9 -> 1.1-2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 17:15:55 2022 +0100 (2022-02-16) |
parents | 3a83121a1137 |
children | 73d8fca57fa5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="diffutils"
4 VERSION="3.7"
5 CATEGORY="development"
6 SHORT_DESC="Show differences between two files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/diffutils/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - ${WGET_URL%/*} 2>/dev/null | \
18 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in
26 ./configure \
27 --prefix=/usr \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
39 # Localisations:
40 for lang in da de fr id it pt_BR ro ru; do
41 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
42 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo \
43 $fs/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo
44 done
46 }
48 # Overlap busybox
49 pre_install()
50 {
51 rm -f "$1/usr/bin/diff"
52 rm -f "$1/usr/bin/cmp"
53 }
55 post_remove()
56 {
57 ln -s /bin/busybox "$1/usr/bin/diff"
58 ln -s /bin/busybox "$1/usr/bin/cmp"
59 }