wok-current view xorg-xf86-video-intel/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 2b82fb694a56
children 3ad63c8fc2f9
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-xf86-video-intel"
4 VERSION="2.99.917"
5 CATEGORY="x-window"
6 TAGS="xorg display"
7 SHORT_DESC="Xorg server Intel driver."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://www.x.org/wiki/"
12 SOURCE="xf86-video-intel"
13 TARBALL="$SOURCE-$VERSION.tar.bz2"
14 WGET_URL="$XORG_MIRROR/driver/$TARBALL"
16 DEPENDS="libdrm libdrm-intel mesa-dri-intel xcb-util xorg-libXvMC xorg-server"
17 BUILD_DEPENDS="libdrm-dev libpthread-stubs-dev xcb-util-dev
18 xorg-libXvMC-dev xorg-server-dev"
20 MODS='/usr/lib/X11/modules'
22 current_version()
23 {
24 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
25 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --sysconfdir=/etc \
33 --mandir=/usr/share/man \
34 --localstatedir=/var \
35 --with-xorg-module-dir=$MODS \
36 --enable-dri \
37 --enable-xvmc \
38 $CONFIGURE_ARGS &&
39 make &&
40 make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p ${fs}${MODS}/drivers
48 cp -a ${install}${MODS}/drivers/*.so ${fs}${MODS}/drivers
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 }