wok-current view diffutils/receipt @ rev 22701
updated enchant and enchant-dev (1.6.0 -> 2.2.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jan 21 10:38:18 2020 +0100 (2020-01-21) |
parents | a714b2b91a0b |
children | 71360a13cd94 |
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 # Rules to configure and make the package.
15 compile_rules()
16 {
17 sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in
19 ./configure \
20 --prefix=/usr \
21 $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $install/usr/bin $fs/usr
32 # Localisations:
33 for lang in da de fr id it pt_BR ro ru; do
34 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
35 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo \
36 $fs/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo
37 done
39 }
41 # Overlap busybox
42 pre_install()
43 {
44 rm -f "$1/usr/bin/diff"
45 rm -f "$1/usr/bin/cmp"
46 }
48 post_remove()
49 {
50 ln -s /bin/busybox "$1/usr/bin/diff"
51 ln -s /bin/busybox "$1/usr/bin/cmp"
52 }