wok view sed/receipt @ rev 24944
updated n2n (2.4 -> 3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 22 16:44:33 2022 +0100 (2022-04-22) |
parents | d5ac235eb44c |
children | b81ceff0b056 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sed"
4 VERSION="4.8"
5 CATEGORY="development"
6 SHORT_DESC="GNU stream editor."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/sed/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="acl"
16 HOST_ARCH="i486 arm"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 $CONFIGURE_ARGS &&
30 make $MAKEFLAGS &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_folders bin
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 [ "$(readlink $1/bin/sed)" = "busybox" ] &&
44 mv $1/bin/sed $1/bin/sed-bb
45 ln -s /usr/bin/sed $1/bin/sed
46 }
48 pre_remove()
49 {
50 rm $1/bin/sed
51 [ -e $1/bin/sed-bb ] &&
52 mv $1/bin/sed-bb $1/bin/sed
53 }