wok-current annotate diffutils/receipt @ rev 24269
updated perl-xml-rss (1.61 -> 1.62)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 10:37:59 2022 +0100 (2022-01-02) |
parents | a714b2b91a0b |
children | 71360a13cd94 |
rev | line source |
---|---|
pascal@2083 | 1 # SliTaz package receipt. |
pascal@2083 | 2 |
pascal@2083 | 3 PACKAGE="diffutils" |
Hans-G?nter@20830 | 4 VERSION="3.7" |
pascal@2083 | 5 CATEGORY="development" |
pascal@2083 | 6 SHORT_DESC="Show differences between two files." |
pascal@2083 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL3" |
Hans-G?nter@20830 | 9 WEB_SITE="http://www.gnu.org/software/diffutils/" |
Hans-G?nter@20830 | 10 |
devl547@17654 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@2083 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@2083 | 13 |
pascal@2083 | 14 # Rules to configure and make the package. |
pascal@2083 | 15 compile_rules() |
pascal@2083 | 16 { |
devl547@17654 | 17 sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in |
Hans-G?nter@20830 | 18 |
Hans-G?nter@20830 | 19 ./configure \ |
Hans-G?nter@20830 | 20 --prefix=/usr \ |
Hans-G?nter@20830 | 21 $CONFIGURE_ARGS && |
pascal@2083 | 22 make && |
slaxemulator@11098 | 23 make DESTDIR=$DESTDIR install |
pascal@2083 | 24 } |
pascal@2083 | 25 |
pascal@2083 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2083 | 27 genpkg_rules() |
pascal@2083 | 28 { |
pascal@2083 | 29 mkdir -p $fs/usr |
pascal@15579 | 30 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@20830 | 31 |
Hans-G?nter@20830 | 32 # Localisations: |
Hans-G?nter@20830 | 33 for lang in da de fr id it pt_BR ro ru; do |
Hans-G?nter@20830 | 34 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
Hans-G?nter@20830 | 35 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo \ |
Hans-G?nter@20830 | 36 $fs/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo |
Hans-G?nter@20830 | 37 done |
Hans-G?nter@20830 | 38 |
pascal@2083 | 39 } |
pascal@8875 | 40 |
pascal@8875 | 41 # Overlap busybox |
pascal@8875 | 42 pre_install() |
pascal@8875 | 43 { |
pascal@18730 | 44 rm -f "$1/usr/bin/diff" |
pascal@18730 | 45 rm -f "$1/usr/bin/cmp" |
pascal@8875 | 46 } |
pascal@8875 | 47 |
pascal@8875 | 48 post_remove() |
pascal@8875 | 49 { |
pascal@18730 | 50 ln -s /bin/busybox "$1/usr/bin/diff" |
pascal@18730 | 51 ln -s /bin/busybox "$1/usr/bin/cmp" |
pascal@8875 | 52 } |