wok annotate xorg-xeyes/receipt @ rev 25580
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 20 07:58:44 2023 +0000 (15 months ago) |
parents | 6b461ec27aea |
children |
rev | line source |
---|---|
pascal@11203 | 1 # SliTaz package receipt. |
pascal@11203 | 2 |
pascal@11203 | 3 PACKAGE="xorg-xeyes" |
Hans-G?nter@22258 | 4 VERSION="1.1.2" |
pascal@11203 | 5 CATEGORY="x-window" |
pascal@11203 | 6 SHORT_DESC="A follow the mouse X demo." |
pascal@11203 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="MIT" |
Hans-G?nter@22258 | 9 WEB_SITE="https://www.x.org/wiki/" |
Hans-G?nter@22258 | 10 |
pascal@11203 | 11 SOURCE="xeyes" |
pascal@11203 | 12 TARBALL="$SOURCE-$VERSION.tar.bz2" |
Hans-G?nter@22258 | 13 WGET_URL="$XORG_MIRROR/app/$TARBALL" |
pascal@15579 | 14 |
Hans-G?nter@22258 | 15 DEPENDS="xorg-libX11 xorg-libXext xorg-libXmu xorg-libXrender xorg-libXt" |
pascal@11203 | 16 |
pascal@24072 | 17 current_version() |
pascal@24072 | 18 { |
pascal@24072 | 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 20 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 21 } |
pascal@24072 | 22 |
pascal@11203 | 23 # Rules to configure and make the package. |
pascal@11203 | 24 compile_rules() |
pascal@11203 | 25 { |
Hans-G?nter@22258 | 26 ./configure \ |
Hans-G?nter@22258 | 27 --prefix=/usr \ |
Hans-G?nter@22258 | 28 --mandir=/usr/share/man \ |
pascal@11203 | 29 $CONFIGURE_ARGS && |
pascal@11203 | 30 make && |
pascal@11203 | 31 make DESTDIR=$DESTDIR install |
pascal@11203 | 32 } |
pascal@11203 | 33 |
pascal@11203 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11203 | 35 genpkg_rules() |
pascal@11203 | 36 { |
pascal@11203 | 37 mkdir -p $fs/usr |
pascal@15579 | 38 cp -a $install/usr/bin $fs/usr |
pascal@11203 | 39 chmod +x $fs/usr/bin/* |
pascal@11203 | 40 } |
Hans-G?nter@22274 | 41 |