wok-6.x annotate which/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | cf4d5bcb351a |
children |
rev | line source |
---|---|
slaxemulator@7340 | 1 # SliTaz package receipt. |
slaxemulator@7340 | 2 |
slaxemulator@7340 | 3 PACKAGE="which" |
Hans-G?nter@22127 | 4 VERSION="2.21" |
slaxemulator@7340 | 5 CATEGORY="base-system" |
Hans-G?nter@22127 | 6 SHORT_DESC="A utility to show the full path of commands." |
slaxemulator@7340 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15201 | 8 LICENSE="GPL3" |
Hans-G?nter@22127 | 9 WEB_SITE="https://savannah.gnu.org/projects/which/" |
Hans-G?nter@22127 | 10 |
slaxemulator@7340 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22127 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7340 | 13 |
pascal@14999 | 14 DEPENDS="glibc-base" |
pascal@14999 | 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 |
slaxemulator@7340 | 23 # Rules to configure and make the package. |
slaxemulator@7340 | 24 compile_rules() |
slaxemulator@7340 | 25 { |
Hans-G?nter@22127 | 26 ./configure \ |
Hans-G?nter@22127 | 27 --prefix=/usr \ |
Hans-G?nter@22127 | 28 --infodir=/usr/share/info \ |
Hans-G?nter@22127 | 29 --mandir=/usr/share/man \ |
slaxemulator@7340 | 30 $CONFIGURE_ARGS && |
Hans-G?nter@22127 | 31 make && |
Hans-G?nter@22127 | 32 make DESTDIR=$DESTDIR install |
slaxemulator@7340 | 33 } |
slaxemulator@7340 | 34 |
slaxemulator@7340 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7340 | 36 genpkg_rules() |
slaxemulator@7340 | 37 { |
slaxemulator@7340 | 38 mkdir -p $fs/usr |
pascal@14999 | 39 cp -a $install/usr/bin $fs/usr |
slaxemulator@7340 | 40 } |
slaxemulator@7340 | 41 |
slaxemulator@7340 | 42 post_remove() |
slaxemulator@7340 | 43 { |
slaxemulator@7340 | 44 ln -s /bin/busybox /usr/bin/which |
al@18741 | 45 } |