wok annotate which/receipt @ rev 25274

updated recordmydesktop (0.3.8.1 -> 0.4.0)
author Hans-G?nter Theisgen
date Mon Jul 18 13:57:40 2022 +0100 (2022-07-18)
parents cf4d5bcb351a
children d79ed38ace18
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 }