wok-next diff sed/receipt @ rev 19725

Up lives (2.8.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 25 11:14:35 2017 +0200 (2017-05-25)
parents 479b6badd960
children 9278a60d6895
line diff
     1.1 --- a/sed/receipt	Sat Feb 14 22:42:00 2015 +0000
     1.2 +++ b/sed/receipt	Thu May 25 11:14:35 2017 +0200
     1.3 @@ -3,28 +3,38 @@
     1.4  PACKAGE="sed"
     1.5  VERSION="4.2.2"
     1.6  CATEGORY="development"
     1.7 -SHORT_DESC="Gnu stream editor."
     1.8 +SHORT_DESC="GNU stream editor."
     1.9  MAINTAINER="paul@slitaz.org"
    1.10  LICENSE="GPL3"
    1.11 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 -WEB_SITE="http://www.gnu.org/software/sed/"
    1.13 -WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.14 +WEB_SITE="https://www.gnu.org/software/sed/"
    1.15  HOST_ARCH="i486 arm"
    1.16  
    1.17 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.18 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.19 +
    1.20  DEPENDS="acl"
    1.21 +BUILD_DEPENDS="acl-dev gettext texinfo"
    1.22  
    1.23  # Rules to configure and make the package.
    1.24  compile_rules()
    1.25  {
    1.26 +	patch -p1 -i $stuff/ru.po.patch
    1.27 +	msgfmt po/ru.po -o po/ru.gmo
    1.28 +
    1.29  	./configure \
    1.30 +		--bindir=/bin \
    1.31 +		--htmldir=/usr/share/doc/sed-$VERSION \
    1.32  		$CONFIGURE_ARGS &&
    1.33 -	make $MAKEFLAGS && make install
    1.34 +	make $MAKEFLAGS && make html && make install && make -C doc install-html
    1.35  }
    1.36  
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38  genpkg_rules()
    1.39  {
    1.40 -	mkdir -p $fs/usr
    1.41 -	cp -a $install/usr/bin $fs/usr
    1.42 +	cook_copy_files sed
    1.43  }
    1.44  
    1.45 +post_remove()
    1.46 +{
    1.47 +	ln -s busybox "$1/bin/sed"
    1.48 +}