wok-6.x annotate xorg-xdriinfo/receipt @ rev 24074

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 08 09:18:48 2021 +0000 (2021-07-08)
parents 5d79829fa876
children
rev   line source
pankso@3019 1 # SliTaz package receipt.
pankso@3019 2
pankso@3019 3 PACKAGE="xorg-xdriinfo"
pankso@3019 4 SOURCE="xdriinfo"
Hans-G?nter@22254 5 VERSION="1.0.6"
pankso@3019 6 CATEGORY="x-window"
Hans-G?nter@22254 7 SHORT_DESC="Query configuration information of DRI drivers."
pankso@3019 8 MAINTAINER="pankso@slitaz.org"
pascal@15579 9 LICENSE="MIT"
Hans-G?nter@22254 10 WEB_SITE="https://www.x.org/wiki/"
Hans-G?nter@22254 11
gokhlayeh@6993 12 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@24074 13 WGET_URL="$XORG_MIRROR/app/$TARBALL"
Hans-G?nter@22254 14
pascal@13796 15 SUGGESTED="nvidia"
Hans-G?nter@22254 16 DEPENDS="mesa xorg-libX11"
Hans-G?nter@22254 17 BUILD_DEPENDS="mesa-dev xorg-libX11-dev"
pankso@3019 18
pascal@24072 19 current_version()
pascal@24072 20 {
pascal@24072 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 22 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 23 }
pascal@24072 24
pankso@3019 25 # Rules to configure and make the package.
pankso@3019 26 compile_rules()
pankso@3019 27 {
Hans-G?nter@22254 28 ./configure \
Hans-G?nter@22254 29 --prefix=/usr \
Hans-G?nter@22254 30 --mandir=/usr/share/man \
Hans-G?nter@22254 31 $CONFIGURE_ARGS &&
pankso@3019 32 make &&
pascal@13796 33 make DESTDIR=$DESTDIR install
pankso@3019 34 }
pankso@3019 35
pankso@3019 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3019 37 genpkg_rules()
pankso@3019 38 {
pankso@3019 39 mkdir -p $fs/usr
Hans-G?nter@22254 40 cp -a $install/usr/bin $fs/usr
pankso@3019 41 }