wok-6.x annotate diffutils/receipt @ rev 25321
updated sqlobject (3.8.0 -> 3.9.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 22 07:45:13 2022 +0100 (2022-07-22) |
parents | 71360a13cd94 |
children |
rev | line source |
---|---|
pascal@2083 | 1 # SliTaz package receipt. |
pascal@2083 | 2 |
pascal@2083 | 3 PACKAGE="diffutils" |
Hans-G?nter@24482 | 4 VERSION="3.8" |
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@24482 | 9 WEB_SITE="https://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 |
Hans-G?nter@24482 | 14 SUGGESTED="diffutils-lang" |
Hans-G?nter@24482 | 15 |
pascal@24336 | 16 # What is the latest version available today? |
pascal@24336 | 17 current_version() |
pascal@24336 | 18 { |
pascal@24336 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 21 } |
pascal@24336 | 22 |
pascal@2083 | 23 # Rules to configure and make the package. |
pascal@2083 | 24 compile_rules() |
pascal@2083 | 25 { |
Hans-G?nter@24482 | 26 # 3.8 might be obsolete |
devl547@17654 | 27 sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in |
Hans-G?nter@20830 | 28 |
Hans-G?nter@24482 | 29 ./configure \ |
Hans-G?nter@24482 | 30 --prefix=/usr \ |
Hans-G?nter@20830 | 31 $CONFIGURE_ARGS && |
pascal@2083 | 32 make && |
Hans-G?nter@24482 | 33 make install DESTDIR=$DESTDIR |
pascal@2083 | 34 } |
pascal@2083 | 35 |
pascal@2083 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2083 | 37 genpkg_rules() |
pascal@2083 | 38 { |
Hans-G?nter@24482 | 39 cook_copy_folders bin |
Hans-G?nter@20830 | 40 |
Hans-G?nter@24482 | 41 # moved to package diffutils-lang |
Hans-G?nter@20830 | 42 # Localisations: |
Hans-G?nter@24482 | 43 # for lang in da de fr id it pt_BR ro ru; do |
Hans-G?nter@24482 | 44 # mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
Hans-G?nter@24482 | 45 # cp -a $install/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo \ |
Hans-G?nter@24482 | 46 # $fs/usr/share/locale/$lang/LC_MESSAGES/diffutils.mo |
Hans-G?nter@24482 | 47 # done |
pascal@2083 | 48 } |
pascal@8875 | 49 |
pascal@8875 | 50 # Overlap busybox |
pascal@8875 | 51 pre_install() |
pascal@8875 | 52 { |
Hans-G?nter@24482 | 53 rm -f "$1/usr/bin/diff" |
Hans-G?nter@24482 | 54 rm -f "$1/usr/bin/cmp" |
pascal@8875 | 55 } |
pascal@8875 | 56 |
pascal@8875 | 57 post_remove() |
pascal@8875 | 58 { |
Hans-G?nter@24482 | 59 ln -s /bin/busybox "$1/usr/bin/diff" |
Hans-G?nter@24482 | 60 ln -s /bin/busybox "$1/usr/bin/cmp" |
pascal@8875 | 61 } |