wok view xorg-xf86-video-modesetting/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 814c58f64f83
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-xf86-video-modesetting"
4 VERSION="0.9.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Xorg generic modesetting video driver."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 SOURCE="xf86-video-modesetting"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="https://www.x.org/"
12 WGET_URL="$XORG_MIRROR/driver/$TARBALL"
13 HOST_ARCH="i486 arm"
15 # We can use xorg-server-light with evdev and fbdev driver.
16 #DEPENDS="xorg-server"
17 BUILD_DEPENDS="xorg-server-dev"
19 # ARM use build system xorg-server-dev or manually install it in sysroot
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 current_version()
25 {
26 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
27 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --prefix=/usr \
35 --sysconfdir=/etc \
36 --localstatedir=/var \
37 --with-xorg-module-dir=/usr/lib/X11/modules \
38 $CONFIGURE_ARGS &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib/X11/modules/drivers/
46 cp -a $install/usr/lib/X11/modules/drivers/*.so \
47 $fs/usr/lib/X11/modules/drivers/
48 }