wok annotate xorg-xauth/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents f0284bf3f6d4
children
rev   line source
pankso@263 1 # SliTaz package receipt.
pankso@263 2
pankso@263 3 PACKAGE="xorg-xauth"
Hans-G?nter@22247 4 VERSION="1.1"
pankso@263 5 CATEGORY="x-window"
erjo@4402 6 SHORT_DESC="X authority file utility."
pankso@263 7 MAINTAINER="pankso@slitaz.org"
pascal@15579 8 LICENSE="MIT"
Hans-G?nter@22247 9 WEB_SITE="https://www.x.org/wiki/"
Hans-G?nter@22247 10
pankso@263 11 SOURCE="xauth"
gokhlayeh@6993 12 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@263 13 WGET_URL="$XORG_MIRROR/app/$TARBALL"
pankso@263 14
pankso@12521 15 DEPENDS="xorg-libXmu"
pankso@12521 16 BUILD_DEPENDS="xorg-libXmu-dev"
pankso@12521 17
Hans-G?nter@22247 18 HOST_ARCH="i486 arm"
Hans-G?nter@22247 19
pankso@15969 20 case "$ARCH" in
pankso@15969 21 arm) BUILD_DEPENDS="xorg-xproto xorg-libXau-dev" ;;
pankso@15969 22 esac
pankso@15969 23
pascal@24072 24 current_version()
pascal@24072 25 {
pascal@24072 26 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 27 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 28 }
pascal@24072 29
pankso@263 30 # Rules to configure and make the package.
pankso@263 31 compile_rules()
pankso@263 32 {
Hans-G?nter@22247 33 ./configure \
pankso@12521 34 --mandir=/usr/share/man \
pankso@12521 35 $CONFIGURE_ARGS &&
Hans-G?nter@22247 36 make &&
Hans-G?nter@22247 37 make install
pankso@263 38 }
pankso@263 39
pankso@263 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@263 41 genpkg_rules()
pankso@263 42 {
pascal@13944 43 mkdir -p $fs/usr/X11R6
Hans-G?nter@22247 44
Hans-G?nter@22247 45 cp -a $install/usr/bin $fs/usr
pascal@13944 46 ln -s ../bin $fs/usr/X11R6/bin
pankso@263 47 }