wok-current annotate xorg-xf86-video-nouveau/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 | 6135577f4d08 |
children | 5926178cd6fa |
rev | line source |
---|---|
devl547@16279 | 1 # SliTaz package receipt. |
devl547@16279 | 2 |
devl547@16279 | 3 PACKAGE="xorg-xf86-video-nouveau" |
psychomaniak@19154 | 4 VERSION="1.0.12" |
devl547@16279 | 5 CATEGORY="x-window" |
devl547@16279 | 6 SHORT_DESC="Xorg server nouveau (nvidia) driver." |
devl547@16279 | 7 MAINTAINER="devl547@gmail.com" |
devl547@16279 | 8 LICENSE="GPL" |
devl547@16279 | 9 SOURCE="xf86-video-nouveau" |
devl547@16279 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@20679 | 11 WEB_SITE="https://nouveau.freedesktop.org/" |
devl547@16279 | 12 WGET_URL="$XORG_MIRROR/driver/$TARBALL" |
devl547@16279 | 13 TAGS="xorg display" |
devl547@16279 | 14 |
psychomaniak@19154 | 15 DEPENDS="xorg-server libdrm-nouveau libpthread-stubs \ |
psychomaniak@19154 | 16 mesa-dri-nouveau" # opengl only |
psychomaniak@19154 | 17 BUILD_DEPENDS="xorg-server-dev libpthread-stubs-dev libdrm-dev" |
devl547@16279 | 18 |
devl547@16279 | 19 MODS='/usr/lib/X11/modules' |
devl547@16279 | 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 |
devl547@16279 | 27 # Rules to configure and make the package. |
devl547@16279 | 28 compile_rules() |
devl547@16279 | 29 { |
devl547@16279 | 30 cd $src |
devl547@16279 | 31 ./configure \ |
devl547@16279 | 32 --sysconfdir=/etc \ |
devl547@16279 | 33 --mandir=/usr/share/man \ |
devl547@16279 | 34 --localstatedir=/var \ |
devl547@16279 | 35 --with-xorg-module-dir=$MODS \ |
devl547@16279 | 36 --enable-dri \ |
devl547@16279 | 37 $CONFIGURE_ARGS && |
devl547@16279 | 38 make && make install |
devl547@16279 | 39 } |
devl547@16279 | 40 |
devl547@16279 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@16279 | 42 genpkg_rules() |
devl547@16279 | 43 { |
devl547@16279 | 44 mkdir -p ${fs}${MODS}/drivers |
devl547@16279 | 45 cp -a ${install}${MODS}/drivers/*.so ${fs}${MODS}/drivers/ |
devl547@16279 | 46 } |