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