wok-current annotate xorg-xdpyinfo/receipt @ rev 24385

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 11:38:23 2022 +0000 (2022-02-07)
parents f0472a14b332
children
rev   line source
jozee@3025 1 # SliTaz package receipt.
jozee@3025 2
jozee@3025 3 PACKAGE="xorg-xdpyinfo"
Hans-G?nter@22253 4 VERSION="1.3.2"
jozee@3025 5 CATEGORY="x-window"
Hans-G?nter@22253 6 TAGS="utility xorg display"
Hans-G?nter@22253 7 SHORT_DESC="Display information utility for X-server."
jozee@3025 8 MAINTAINER="jozee@slitaz.org"
pascal@15579 9 LICENSE="MIT"
Hans-G?nter@22253 10 WEB_SITE="https://www.x.org/wiki/"
Hans-G?nter@22253 11
jozee@3025 12 SOURCE="xdpyinfo"
jozee@3025 13 TARBALL="$SOURCE-$VERSION.tar.bz2"
Hans-G?nter@22253 14 WGET_URL="$XORG_MIRROR/app/$TARBALL"
pascal@15579 15
Hans-G?nter@22253 16 DEPENDS="xorg-libXinerama xorg-libXp xorg-libXrender
Hans-G?nter@22253 17 xorg-libXtst xorg-libXxf86vm"
Hans-G?nter@22253 18 BUILD_DEPENDS="xorg-libXinerama-dev xorg-libXp-dev
Hans-G?nter@22253 19 xorg-libXrender-dev xorg-libXtst-dev xorg-libXxf86vm-dev"
jozee@3025 20
pascal@24072 21 current_version()
pascal@24072 22 {
pascal@24072 23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 24 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 25 }
pascal@24072 26
jozee@3025 27 # Rules to configure and make the package.ls sr
jozee@3025 28 compile_rules()
jozee@3025 29 {
Hans-G?nter@22253 30 ./configure \
Hans-G?nter@22253 31 --prefix=/usr \
Hans-G?nter@22253 32 --mandir=/usr/share/man \
jozee@3025 33 $CONFIGURE_ARGS &&
jozee@3025 34 make &&
pascal@15579 35 make DESTDIR=$DESTDIR install
jozee@3025 36 }
jozee@3025 37
jozee@3025 38 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@3025 39 genpkg_rules()
jozee@3025 40 {
jozee@3025 41 mkdir -p $fs/usr
Hans-G?nter@22253 42 cp -a $install/usr/bin $fs/usr
jozee@3025 43 }