wok annotate sed/receipt @ rev 25800
Up xcursor-aero (20240910)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 28 13:19:05 2024 +0000 (4 weeks ago) |
parents | b81ceff0b056 |
children |
rev | line source |
---|---|
paul@3640 | 1 # SliTaz package receipt. |
paul@3640 | 2 |
paul@3640 | 3 PACKAGE="sed" |
Hans-G?nter@23638 | 4 VERSION="4.8" |
paul@3640 | 5 CATEGORY="development" |
Hans-G?nter@21898 | 6 SHORT_DESC="GNU stream editor." |
paul@3640 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15229 | 8 LICENSE="GPL3" |
Hans-G?nter@21898 | 9 WEB_SITE="https://www.gnu.org/software/sed/" |
Hans-G?nter@21898 | 10 |
devl547@19607 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
paul@3640 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
paul@3640 | 13 |
pascal@15229 | 14 DEPENDS="acl" |
pascal@15229 | 15 |
Hans-G?nter@21898 | 16 HOST_ARCH="i486 arm" |
Hans-G?nter@21898 | 17 |
pascal@24336 | 18 # What is the latest version available today? |
pascal@24336 | 19 current_version() |
pascal@24336 | 20 { |
pascal@25609 | 21 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \ |
pascal@24336 | 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 23 } |
pascal@24336 | 24 |
paul@3640 | 25 # Rules to configure and make the package. |
paul@3640 | 26 compile_rules() |
paul@3640 | 27 { |
Hans-G?nter@23638 | 28 ./configure \ |
paul@3640 | 29 $CONFIGURE_ARGS && |
Hans-G?nter@21898 | 30 make $MAKEFLAGS && |
Hans-G?nter@21898 | 31 make install |
paul@3640 | 32 } |
paul@3640 | 33 |
paul@3640 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@3640 | 35 genpkg_rules() |
paul@3640 | 36 { |
Hans-G?nter@23638 | 37 cook_copy_folders bin |
paul@3640 | 38 } |
paul@3640 | 39 |
pascal@21874 | 40 # Pre and post install commands for Tazpkg. |
pascal@21874 | 41 post_install() |
pascal@21874 | 42 { |
Hans-G?nter@23638 | 43 [ "$(readlink $1/bin/sed)" = "busybox" ] && |
Hans-G?nter@23638 | 44 mv $1/bin/sed $1/bin/sed-bb |
Hans-G?nter@23638 | 45 ln -s /usr/bin/sed $1/bin/sed |
pascal@21874 | 46 } |
pascal@21874 | 47 |
pascal@21874 | 48 pre_remove() |
pascal@21874 | 49 { |
pascal@22096 | 50 rm $1/bin/sed |
Hans-G?nter@23638 | 51 [ -e $1/bin/sed-bb ] && |
Hans-G?nter@23638 | 52 mv $1/bin/sed-bb $1/bin/sed |
pascal@21874 | 53 } |