wok view sed/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (8 months ago) |
parents | b81ceff0b056 |
children |
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 - https://ftp.gnu.org/gnu/$PACKAGE/ 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 }